My question is about using interface class with graphical user interface in java.
Now i have interface class which have methods like this:
public interface management
{
public void loginActionPerformed(java.awt.event.ActionEvent evt);
}
then i create a class that implements the interface but this class is written with gui design and has a button that will implement the method login
the problem: the button method is private and cannot be converted to public because iam using the drag and drop to make the design.
how to fix this problem or how to use interface class with gui design?
code of the class that has the design:
public class employee extends javax.swing.JFrame implements management
{
private void loginActionPerformed(java.awt.event.ActionEvent evt) {
// implementation
}
}