I'm using Java . I have 25 frames and they are opening randomly. When I click on Log out the objective is visible and invisible all frames will be closed and Log out will redirect to Log in Frame.
I'm using Java JDBC and NETBEANS IDE.
I'm using Java . I have 25 frames and they are opening randomly. When I click on Log out the objective is visible and invisible all frames will be closed and Log out will redirect to Log in Frame.
I'm using Java JDBC and NETBEANS IDE.
When each frame is created, add it to a List of some sort and when the user clicks Log Out, iterate through the List and on each frame call
frame.dispatchEvent(new WindowEvent(frame, WindowEvent.WINDOW_CLOSING));
as done here.
After that just create the Log In frame again.