Frame closing


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 4 of 4

Thread: Frame closing

  1. #1
    alex Guest

    Frame closing


    If I have a frame that in that frame I have something running and I close
    the frame and I want this frame that I'm closing to continue running while
    closed, How can I accomplish this?.


    Thanks for your help
    alex

  2. #2
    Ako Guest

    Re: Frame closing


    I cant see the point of keeping a process running after you close the fram
    because that would be just a waste of resources.(here i am assuming that
    you dont mean minimizing the frame but actually closing it).

    But if the frame is only wanted for a cetain preriod while the program is
    running (eg giving a warning, asking for input or dispalying something) you
    can have your program open any number of frames as needed and when you close
    the fram the control is handed back to the calling method if the frame is
    not an independed thread. So if you want your process to be still running
    after you close your frame then make your process create the from not the
    otherway round.

    Good Luck,

    Ako


    "alex" <delgadoalex2001@aol.com> wrote:
    >
    >If I have a frame that in that frame I have something running and I close
    >the frame and I want this frame that I'm closing to continue running while
    >closed, How can I accomplish this?.
    >
    >
    >Thanks for your help
    >alex



  3. #3
    Paul Clapham Guest

    Re: Frame closing

    What do you mean when you say you are running something "in a frame"? You
    must be running some thread, but I guess you mean that thread is affecting
    what the frame looks like or something. You could make it invisible instead
    of closing it.

    PC2

    "alex" <delgadoalex2001@aol.com> wrote in message
    news:3af0007c$1@news.devx.com...
    >
    > If I have a frame that in that frame I have something running and I close
    > the frame and I want this frame that I'm closing to continue running while
    > closed, How can I accomplish this?.
    >
    >
    > Thanks for your help
    > alex




  4. #4
    wizard Guest

    Re: Frame closing


    "alex" <delgadoalex2001@aol.com> wrote:
    >
    >If I have a frame that in that frame I have something running and I close
    >the frame and I want this frame that I'm closing to continue running while
    >closed, How can I accomplish this?.


    You can control the action of what happens when the frame is closed. In
    the constructor for your frame, add the statement
    setDefaultCloseOperation(action);
    where action is a set of public fields that have specific operations. Look
    up the various options in the JDK API.



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