Results 1 to 4 of 4
  1. #1
    kovalensue is offline Member
    Join Date
    Nov 2010
    Posts
    19
    Rep Power
    0

    Default How to show optionPane after clicking on close cross

    Hi,
    i have little app which stores some data about customers. Those data are stored in .txt file. Now my question is. When i click on menu item Quit is performed action which saves all new data, then rewrites the the file and exits the program. But when the user quit the app by clicking close cross, the data will not save at all. So how can i modify the defaultCloseOperation.EXIT_ON_CLOSE?? I want to display after closing the program a option pane which says: Are you sure to quit...or something like that.

  2. #2
    KevinWorkman's Avatar
    KevinWorkman is offline Crazy Cat Lady
    Join Date
    Oct 2010
    Location
    Washington, DC
    Posts
    3,864
    Rep Power
    8

    Default Re: How to show optionPane after clicking on close cross

    How to Ask Questions the Smart Way
    Static Void Games - Play indie games, learn from game tutorials and source code, upload your own games!

  3. #3
    camickr is offline Senior Member
    Join Date
    Jul 2009
    Posts
    1,233
    Rep Power
    7

    Default Re: How to show optionPane after clicking on close cross


  4. #4
    kovalensue is offline Member
    Join Date
    Nov 2010
    Posts
    19
    Rep Power
    0

    Default Re: How to show optionPane after clicking on close cross

    Hi again,
    I thank you for helping me. Now i can figure our how to do that.

Similar Threads

  1. Cross-Browser Issue with show/hide divs
    By jmchaffie in forum New To Java
    Replies: 3
    Last Post: 03-10-2011, 09:41 AM
  2. How to show the full resolution image at clicking on thumnail
    By amritpalpathak in forum New To Java
    Replies: 4
    Last Post: 12-01-2010, 04:43 PM
  3. Replies: 3
    Last Post: 05-27-2010, 10:54 AM
  4. Replies: 13
    Last Post: 04-09-2010, 11:15 AM
  5. netbeans 6.0 not show commpunent or show blank page
    By fahimaamir in forum NetBeans
    Replies: 1
    Last Post: 01-26-2008, 06:20 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •