Window closing exception


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 4 of 4

Thread: Window closing exception

  1. #1
    Join Date
    Nov 2004
    Posts
    2

    Window closing exception

    I'm currently doing a project with a container and all and I'm not too used with it yet.

    The program handles datas coming from a random access file and everything gets messed up if the user clicks on the red X.

    I want to know how make the program makes his how exception when the user closes the window.

    And I don't want to just disable the window, because on some windows, I want to use the red X as a back button, so that it shows back the previous window instead of ending the execution.

    thank you.

    SOE

  2. #2
    Join Date
    Aug 2004
    Location
    On the net
    Posts
    38
    As far as my understanding is concerned you want to open a child window upon clicking something and after the usage you want to go back to the parent window upon clicking the X mark on the window.

    If this is the case then you need to use another container in a parent container and need to open the child container and upon clicking the X on the window you need to close the child container in the event corresponding to the window closing.

    If still needs any clarifications then please describe your problem well.

    Good Luck,

    Narayana :-)

  3. #3
    Join Date
    Oct 2004
    Posts
    25

    Wink

    I think you have to use WindowListener

    Best Regards
    floaty

  4. #4
    Join Date
    Nov 2004
    Posts
    2
    Narayana, this is exactly what I want to do, and I already knew I had to close the corresponding child window in the correspounding even method. I know I must use the windowListener to listen to the X button, but that is exactly what I want to know how to do.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center