JDialog focus  
Author Message
aaronfude





PostPosted: 2006-11-9 6:08:00 Top

java-programmer, JDialog focus Hi,

Is it possible to ensure that, upon setVisible(true), a JDialog pop-up
jumps on top of all other windows including other applications?

Many thanks in advance!

Aaron Fude

 
Andrew Thompson





PostPosted: 2006-11-9 9:20:00 Top

java-programmer >> JDialog focus email***@***.com wrote:
...
> Is it possible to ensure that, upon setVisible(true), a JDialog pop-up
> jumps on top of all other windows ...

modal true.

>...including other applications?

setAlwaysOnTop()

Andrew T.

 
Eric Sosman





PostPosted: 2006-11-10 0:07:00 Top

java-programmer >> JDialog focus

email***@***.com wrote On 11/08/06 17:08,:
> Hi,
>
> Is it possible to ensure that, upon setVisible(true), a JDialog pop-up
> jumps on top of all other windows including other applications?

You can "suggest" that behavior (see Andrew Thompson's
response), but obviously you cannot "ensure" it. Consider:
What happens when two different applications both try to
make their windows do this?

--
email***@***.com

 
 
Andrew Thompson





PostPosted: 2006-11-10 7:26:00 Top

java-programmer >> JDialog focus Eric Sosman wrote:
> email***@***.com wrote On 11/08/06 17:08,:
> > Hi,
> >
> > Is it possible to ensure that, upon setVisible(true), a JDialog pop-up
> > jumps on top of all other windows including other applications?
>
> You can "suggest" that behavior (see Andrew Thompson's
> response), but obviously you cannot "ensure" it. Consider:
> What happens when two different applications both try to
> make their windows do this?

I think it should come down to whichever app. has
the biggest bull-bar.

( ..do I even need to add a 'smiley' to that? )

Andrew T.