Jim Schneider

Greenhorn
+ Follow
since Oct 22, 2003
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Jim Schneider

Thanks Chet
I checked out the application framework and looks like what I am trying to do.
-Jim
14 years ago
Hello,
I am a java newbie but not to programming and trying to learn and put a desktop application together. I would like to know is there a right/wrong ways to open/start a Java desktop application.
My thoughts are as follows:
Have an "application manager object" that basically handles the entire
application. This object would be created in the main function of the
class.
This object would then handle everything from there open new frames build
new objects from an init() function called from the main function.
When the init control is returned to the init functions the application
would naturally end.

Is this the correct way to handle a desktop application and will when the init() function opens a window will the function keep control until that window is closed???

TIA
-Jim
14 years ago
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
14 years ago