|
-
May 28th, 2006, 10:34 AM
#1
Thread Starter
Lively Member
New Frame
hei,, its very simple...
i have a login frame in my app,the question is..
how will i show the main frame after i clicked the "Ok" button??? thanks...
-
May 28th, 2006, 11:10 AM
#2
-
May 28th, 2006, 11:25 AM
#3
Re: New Frame
 Originally Posted by manavo11
This? In your action listener for the OK button? Or are you having trouble with implementing an action listener?
Code:
MainWindow MW = new MainWindow();
MW.pack();
MW.show();
fatal mistake don't ever use the: always use
Code:
frame.setVisible(true);
Another thing, I don't think a main window is something you create on click you make it visible, you don't want changes to be discarded
"I'm not normally a praying man, but if you're up there, save me... Superman!" - Homer Simpson
My Blog
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|