Re: setVisible on a JWindow steals focus from other apps?



Just subclass JWindow and override the toFront() method so it does nothing.


"Trademark" <TMTrademark@xxxxxxxxx> wrote in message
news:1140649957.577565.84460@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
Hey all. I need to popup a window without the user necessarily noticing
it immediately. I'm using a technique involving a JWindow that starts
mostly offscreen and slides in to reveal information.

The problem is that when I surface the JWindow with setVisible(true),
the focus is stolen away from other applications, alerting the user too
early and just being annoying. Anyone have any advice on how to fix
this?

--TM



.