Navigating from one window to another
Hello,
I m creating an authentication mechanism in which window will display user name and password, it contains buttons such as OK, CANCEL and NEW USER.
If user is " a new user" i just want him to register himself on new window and at d same time old window will be disabled or hidden. When user finished with the formality he should press OK, this OK button should take him to previous window.
PROBLEM is tht how to jump from one window to another.
PLZ HELP!!
Re: Navigating from one window to another
Hello visharaddhavle83. Welcome to the Java Programming Forums.
Similar issues have been addressed on the forums before. See if this thread will help you:
http://www.javaprogrammingforums.com...-netbeans.html
You can use frame.setVisible(false); to hide your windows.
If you need help, post back and we will take it from there...
Re: Navigating from one window to another
the best solution is to hide your current window by just using set_visible=0 or the hide functions applied whenever nedded
for switching b/w the frames give every frame a function name which may be in the same class or in other class in some other package,add some keylistneres or buttons and when needed call those func.
this the best thing to do??? try this out????:)