when user login then login frame exists whena nother frame invoked.
WindowEvent w=new WindowEvent(this,WindowEvent.WINDOW_CLOSING);
Toolkit.getDefaultToolkit().getSystemEventQueue().postEvent(w);
for More information contact to-Blazing Star Softech pvt ltd (india.)