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:
- get size of screen , size of widget in runtime thread(is user drags widget on desktop)
- find position of widget on window screen.
- 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
Post a Comment