Ivan
I guess, you are facing this problem on
Solaris.
You never have to use toFront() or toBack() on
win32 platforms if,
you create a dialog with the main JFRAME as the
parent.
In this case, the JDialog just stays on top
of all the swing components inside the main
JFrame.
There is a long pending bug in SUN's bug parade
related to floating dialogs on Solaris.
Thanks
Madhav
----- Original Message -----
Sent: Thursday, November 21, 2002 1:30
PM
Subject: [jdjlist] An always on top
dialog
Hi
In an MDI application, I need to create a
dialog which stays always on top of the application. A typical example
of this is the standard Find dialog in many application like Word or
even in applications written in java like NetBeans.
The only hint that I find is that the
java.awt.Window class has a toFront() methos. However, to use this, I would
have to check for any focuses gained by other windows/dialogs and always
call this method which seems to be a too complicated way.
Are threre any other easier ways?
Thanks for any help.
Ivan
____________________________________________________
To
change your JDJList options, please
visit:
http://www.sys-con.com/java/list.cfm
Be respectful! Clean
up your posts before
replying
____________________________________________________
____________________________________________________
To change
your JDJList options, please
visit:
http://www.sys-con.com/java/list.cfm
Be respectful! Clean up
your posts before
replying
____________________________________________________
____________________________________________________