"John McGrath" <ng@jpmcgrath.net> wrote in news:xn0e0vj352mywb0003
@news.verizon.net:
>> Is there a way, in Java, to create windows with the WS_EX_TOPMOST
>> property set in Windows?
[quoted text clipped - 5 lines]
> might be the same as setting the AlwaysOnTop property for a Window. This
> property is new in JDK 1.5.
Unfortunately I've been told that my company won't be using 1.5 for quite
some time due to incompatibilities with a 3rd party library we're depending
on.
Is there another way?
Thanks,
-Linda
John McGrath - 12 Apr 2005 02:48 GMT
> Unfortunately I've been told that my company won't be using 1.5 for
> quite some time due to incompatibilities with a 3rd party library we're
> depending on.
>
> Is there another way?
Well, the next thing I would have mentioned is JNI, although you say you
tried that. However, I doubt that the problem you had is because you set
the property too late. It looks to me as if the property can be changed
anytime.
I have a tool that allows me to set this property on arbitrary windows,
and it works anytime. I also just created a test program using JDK 1.5.
It contains a checkbox that allows me to toggle the AlwaysOnTop property
for the frame, and it also works anytime.
BTW - I verified that in both these cases, the WS_EX_TOPMOST Windows style
is being set.

Signature
Regards,
John McGrath