Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / GUI / March 2006

Tip: Looking for answers? Try searching our database.

Help: how to make JDialog non closable

Thread view: 
Ted - 08 Mar 2006 14:28 GMT
I have a JDialog that contains many controls for a simulation. I would
like to make it impossible for the user to close that dialog via the
close button. How do I do that?

TIA,

Ted
Big Jim - 08 Mar 2006 17:54 GMT
>I have a JDialog that contains many controls for a simulation. I would like
>to make it impossible for the user to close that dialog via the close
[quoted text clipped - 3 lines]
>
> Ted

from thejdialog api:

setDefaultCloseOperation
public void setDefaultCloseOperation(int operation)Sets the operation which
will happen by default when the user initiates a "close" on this dialog. The
possible choices are:
   a.. DO_NOTHING_ON_CLOSE - do not do anything - require the program to
handle the operation in the windowClosing method of a registered
WindowListener object


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.