This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes Window Close Conformation Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Window Close Conformation" Watch "Window Close Conformation" New topic

Window Close Conformation

S.Subhash Chandran

Joined: Dec 31, 2002
Posts: 27
I have a JOptionPane conformation in the WindowListener class. If the user presses "Yes" the application quits "System.exit(0)". Else, nothing should happen. But the application's frame object's visibility is automatically set to false after executing my JOptionPane routine...
What to do?

Subhash Chandran S<br /><a href="" target="_blank" rel="nofollow"></a>
S.Subhash Chandran

Joined: Dec 31, 2002
Posts: 27
Got it! Just add:
before u addWindowListener() to jfObj.
I agree. Here's the link:
subject: Window Close Conformation
Similar Threads
[B]How To Center/Position a showMessageDialog box?[/B]
Message Dialog box --> action performed.
java alert
Bodgitt&scraper Locaction of the database
actions performed