I have a Frame that I inherited from JFrame Class. I have placed a couple of Buttons on that frame I will call this frame aFrame.
Now what I want to do is inherit from the new aFrame class which has the buttons already placed on the frame. I could not find a way in the netbeans
ide to specify that I wanted the superclass to be the frame with the buttons already on it.I create a new frame class and change the generated code to extend the aFrame class. When I open that class in the GUI designer I cannot see the buttons but if I run the app and open the new frame the buttons are there and visible.
My questions are as follows.
1. Am I correct in assuming that if I inherit from a Frame object it should contain the buttons which it does but should they be visible when I open the "new" Frame? I am coming from another visual development language which works in this way.
2. I know that this is not a NetBeans forum but does anybody know is there a correct way in the NetBeans GUI to specify a class to extend that allows the buttons to be visible in the class that is extending another Frame?
TIA
Jim