So I have a class called character(), and my second class ChooseCharacterGUI() extends that class, but when I try to initialize ChooseCharacterGUI() to create the application I get the error "Implicit super constructor character() is undefined. Must explicitly invoke another constructor."
This is the ChooseCharacterGUI() class.
public class ChooseCharacterGUI extends character {
final String CharacterChoice;
private JFrame frame;
private JPanel ChooseCharacterMenu;
private JPanel Home;
// Launches application.
public static void main(String[] args) {
EventQueue.invokeLater(new Runnable() {
public void run() {
try {
ChooseCharacterGUI window = new ChooseCharacterGUI();
window.frame.setVisible(true);
} catch (Exception e) {
e.printStackTrace();
}
}
});
}
//Creates application
public ChooseCharacterGUI() {
initialize();
}
Anyone know how I can fix this? thanks.