Link to home
Start Free TrialLog in
Avatar of mrgentry
mrgentry

asked on

Keeping a java window (JDialog) 'always on top'

Is it possible for a java window to be forced to remain the topmost window?

For my purposes this app will always only run under Win95/98/NT so a native method approach is acceptable, and will work.  However, to do it that way I need a guaranteed way of getting the HWND for the window which I have not yet found.  Calling GetForegroundWindow won't do since there is no way to guarantee that the window is the foreground window when the call is made.
ASKER CERTIFIED SOLUTION
Avatar of gadio
gadio

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of mrgentry
mrgentry

ASKER

I would really rather not have a thread just sitting there throwing the window to the front constantly and would much prefer to take the 2nd approach of searching for the widow.