You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@pivot.apache.org by dhaval vyas <dh...@gmail.com> on 2010/05/10 05:19:32 UTC

“Always on Top” Windows Pivot

Hello,
      I am developing a small desktop app using pivot, and my app window
need to stay on top even if the user selects other window.
Is there a way to do this in Pivot.
I found a way to do this in JFrame, but I dont know how to port this in
Pivot.

http://stackoverflow.com/questions/297938/always-on-top-windows-with-java

Thanks
-- 
Dhaval Vyas

Re: “Always on Top” Windows Pivot

Posted by Greg Brown <gk...@mac.com>.
You call call setAlwaysOnTop() on the host frame:

  http://java.sun.com/javase/6/docs/api/java/awt/Window.html#setAlwaysOnTop(boolean)

First get the DisplayHost component that contains the display by calling Display#getDisplayHost(), and then you can get the root AWT Frame from that.


On May 9, 2010, at 11:19 PM, dhaval vyas wrote:

> Hello, 
>       I am developing a small desktop app using pivot, and my app window need to stay on top even if the user selects other window. 
> Is there a way to do this in Pivot. 
> I found a way to do this in JFrame, but I dont know how to port this in Pivot.
> 
> http://stackoverflow.com/questions/297938/always-on-top-windows-with-java
> 
> Thanks
> -- 
> Dhaval Vyas
>