how to remove all frames after log out

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.

Answers


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.


Need Your Help

Automating/replaying on Chrome devtools timeline

performance google-chrome profiling rendering google-chrome-devtools

I have a web page which can be janky to scroll if certain styles are applied. My question is how can I systematically test the effect of individual styles. I don't want to just manually scroll down...

Simpson's method to integrate real valued functions with CUDA

cuda integral

I'm trying to code integration by Simpson's method in CUDA.

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.