agent_x91
10-10-2004, 05:52 AM
I've made a simple application which opens a window and displays a few pieces of information. Is it possible to make the window focus itself once blurred?
|
Click to See Complete Forum and Search --> : keeping application window in constant focus agent_x91 10-10-2004, 05:52 AM I've made a simple application which opens a window and displays a few pieces of information. Is it possible to make the window focus itself once blurred? buntine 10-10-2004, 06:44 AM It would be extremely annoying to the user, though, you could re-activate/re-focus the frame from the windowDeactivated() method in your handler. public void windowDeactivated(WindowEvent we) { YourClass parent = (YourClass)we.getSource(); parent.toFront(); } Note, replace YourClass with the name of the object which inherits/extends JFrame. Regards. agent_x91 10-11-2004, 11:31 AM yeah i figured that out already now, but it lags the computer and it's useless webdeveloper.com
Copyright Internet.com Inc., All Rights Reserved. |