How to make a Java Swing app always stay on back -


i'm doing widget, kind of windows 7 gadgets, , want on back. needs on desktop, when user goes there it'll there.

i'm looking opposite of setalwaysontop, need checks when user goes desktop haven't found how.

i'm using jdialog instead of jframe hide app icon taskbar, clarify.

as know "windows 7 gadgets" remain on desktop rather on top of open window. if use "setalwaysontop", put widget on top of application whether chrome or eclipse ide.
widget position on desktop, should these things:

  1. get size of screen , size of widget in runtime thread(is user drags widget on desktop)
  2. find position of widget on window screen.
  3. update position of widget per mouse pointer location (you have math calculate it)

also can remove title bar , borders jdialog give widget view.

hope help. :-)


Comments

Popular posts from this blog

ubuntu - PHP script to find files of certain extensions in a directory, returns populated array when run in browser, but empty array when run from terminal -

php - How can i create a user dashboard -

javascript - How to detect toggling of the fullscreen-toolbar in jQuery Mobile? -