I need my class to extend JFrame and ApplicationFrame. Is that possible? How?
Printable View
I need my class to extend JFrame and ApplicationFrame. Is that possible? How?
A class cannot extent two classes, however if the ApplicationFrame is a Interface implement the AplicationFrame after Exending the JFrame:
Code :public class Main extends JFrame implements ApplicationFrame {
The class main is a child of JFrame, and Application frame,
@another question ,what is this ApplicationFrame you speak of is it one of your own classes, you need to give more info :s
you can simply write Maiin extends JFrame implements ActionListener{
isn't your application frame a subclass of jframe? if it is not u can do this then:
public class ApplicationFrame extends JFrame{
}
public YourClass extends ApplicationFrame{
}
that way you can have the attributes of both JFrame and ApplicationFrame.