Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Jdialog Close Button Action Listener

843806Mar 12 2008 — edited Mar 12 2008
Hi All,

Is there any way to write an action listener on the JDialog close button (top right hand corner) just for click i want to set the default action to DO_NOTHING on the close button and then handel the closing of the jDIalog from the action listener.

I need this to introduce user intervention in the jdialog closing state. So i basically want a "Are you sure you want to close |Yes | No|" on |No| the dialog should remain open on |Yes| it should close.

Any help will be greatly appreciated.

Kind Regards
Werns
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Apr 9 2008
Added on Mar 12 2008
2 comments
3,587 views