How to make JFrame ToFront to all applications

HI

My problem is i have a JFrame where in i have a JCheckBock and when i check it my frame should be top from all applications opened(like MS Word,notepad or any window) and when it is dechecked it should be back when any application is opened . I tried in solaris by using toFront() but no result is found any suggestions please...

[352 byte] By [k_ramanadham2] at [2007-9-26 1:14:49]
# 1
toFront() only works for visible frames. Add a WindowListener to your frame, and in the windowOpened() callback method call toFront().Kurta
h230561 at 2007-6-29 0:32:35 > top of Java-index,Archived Forums,Swing...