Article View: borland.public.jbuilder.java.swing
Article #426Re: How to refocus an open (modal==false) jDialog
From: Lori M Olson [TeamB]
Date: Thu, 12 May 2005 15:54
Date: Thu, 12 May 2005 15:54
60 lines
3227 bytes
3227 bytes
Magnus wrote:
> Follow up on this issue:
>
> I have a main-window that has a button to show all details for a
> selected item in a list.
>
> The window is defined as: public class ViewDetails extends JDialog {
>
> The constructor opens this as modal=true;
>
> While testing I had the ViewDetails opened over the main-window when I
> selected to clear the desktop (i.e. no windows open). I then clicked in
> the bottom toolbar to swap back to application and here is where the
> problem occurred:
>
> The process came back but the main-window was in front of the ViewDetail
> window (that is smaller than the main-window). Since it was running in
> modal, I could not move the main-window or get to the ViewDetail in any
> way.
>
> The way I got around this was to open another window (my browser) and
> then the VIewDetail was put in front of the main-window. I minimized the
> browser and could continue with my app.
>
> Now, I can't write in the manual "if you can't see your window - open
> another application and the window will appear ..."
>
> Anyone has a solution for this behavior?
>
Submarining modal windows are a problem with many Windows applications.
This is not necessarily a Java-specific issue. I find a lot of
install programs do something similar.
I generally use "Alt-Tab" to find these sorts of "hidden" windows, not
opening another application...
You need to investigate/google focus issues and z-order issues with
modal windows/dialogs. These things tend to be very application
specific, so a solution that worked for someone else may not work for
your application.
--
Regards,
Lori Olson [TeamB]
------------
Save yourself, and everyone else, some time and search the
newsgroups and the FAQ-O-Matic before posting your next
question.
Google Advanced Newsgroup Search
http://www.google.ca/advanced_group_search
Other Newsgroup Searches:
http://www.borland.com/newsgroups/ngsearch.html
Joi Ellis's FAQ-O-Matic:
http://www.visi.com/~gyles19/fom-serve/cache/1.html
Technical Details
Message-ID:
<42837c44$1@newsgroups.borland.com>Path:
arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!msrn-out!msrn-in!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mailReferences:
<42669161@newsgroups.borland.com> <42691bc7$1@newsgroups.borland.com> <42837a0d@newsgroups.borland.com>Show Full Headers
Complete Article Headers
X-Google-Thread: 111d45,96415b146a3c2aed X-Google-Attributes: gid111d45,public X-Google-Language: ENGLISH,ASCII-7-bit Date: Thu, 12 May 2005 09:54:45 -0600 From: "Lori M Olson [TeamB]" <javadragon@techie.com> User-Agent: Mozilla Thunderbird 1.0.2 (Macintosh/20050317) X-Accept-Language: en-us, en MIME-Version: 1.0 Newsgroups: borland.public.jbuilder.java.swing Subject: Re: How to refocus an open (modal==false) jDialog References: <42669161@newsgroups.borland.com> <42691bc7$1@newsgroups.borland.com> <42837a0d@newsgroups.borland.com> In-Reply-To: <42837a0d@newsgroups.borland.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit NNTP-Posting-Host: 142.179.181.200 Message-ID: <42837c44$1@newsgroups.borland.com> X-Trace: newsgroups.borland.com 1115913284 142.179.181.200 (12 May 2005 08:54:44 -0700) Lines: 60 Path: arc1-ca.pugleaf.net!g2news1.google.com!news3.google.com!news.glorb.com!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!msrn-out!msrn-in!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail