Click here to Skip to main content
15,899,025 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I have a simpe Java MVC Aplication and i whant to close the login and go to another view!

What I have tried:

Java
this.setVisible(false);

But this method can be placed just the current view and i want to put the method in controllers...
And for set visible another View i don't know what to use...
Posted
Comments
Richard MacCutchan 3-Nov-16 12:13pm    
It is probably better to use a dialog for the login. Start the application with your main window, show the dialog and if the login is successful then continue.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900