
Signature
Oliver Hirschi
http://www.FamilyHirschi.ch
--
Oliver Hirschi
http://www.FamilyHirschi.ch
> Hi
>
> How can I programatically take my java-application under MacOSX to front?
> I have a JFrame and I think I tested all kinds of methods to do this:
> "toFront, setVisible, invalidate, validate, setenable, etc."
toFront is the standard way, but from what I understand, the OS is free
to ignore the request, or implement it in ways other than simply bringing
the window the the front (in Windows XP, for example, it'll cause its
corresponding entry in the taskbar to flash). Think of toFront as a
"request" to be brought to front, rather than a direct order to do so.
See
http://java.sun.com/j2se/1.5.0/docs/api/java/awt/Window.html#toFront()
- Oliver
Oliver Hirschi - 18 Sep 2006 08:15 GMT
>> Hi
>>
[quoted text clipped - 12 lines]
> See
> http://java.sun.com/j2se/1.5.0/docs/api/java/awt/Window.html#toFront()
I have seen this and it seems that there is only the way to do this, to
implement a nativ library for each OS and a jni-interface.
by-the-way: On win 2000 there is the behaviour i want (the application
comes really to front). On win xp, i can get the behaviour when I reset
the system flag "Prevent applications from stealing focus" with the
powertoy TweakUI from microsoft.
Oli