I have this code:
public class LaunchScreen extends JFrame implements ActionListener {
private final JMenu commandMenu = new JMenu("Commands");
private final JMenuItem add = new JMenuItem("Add");
private final JMenuItem search = new JMenuItem("Search");
private final JMenuItem quit = new JMenuItem("Quit");
public LaunchScreen() {
super();
setSize(300, 300);
setTitle("Library Search");
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
commandMenu.add(add);
commandMenu.add(search);
commandMenu.add(quit);
}
@Override
public void actionPerformed(ActionEvent e) {
}
}
The three lines after super();
have a warning, Overridable method call in constructor
. What does this mean? The other answers to this question don't really help me.