-
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
-
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
-
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
-
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
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks