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...
Printable View
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...
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:Quote:
Originally Posted by manavo11
always useCode:frame.show();
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 discardedCode:frame.setVisible(true);