vijalaxmi wrote:
i did that but i can open 2nd frame but 1st frame will be there at back.
any other solutions?
prefer it,
JFrame yourframe=new JFrame();
yourframe.addWindowListener(new java.awt.event.WindowAdapter() {
public void windowLostFocus(WindowEvent e) {
super.windowLostFocus(e);
yourframe.setVisible(false);
}
});
hope this will help you
cheers