0

I have made a desktop clock widget and every time I go on the desktop, the app gains focus and then loses focus but its quite annoying when the app goes to the back. Is there a way I can make the app never have focus so it doesn't do that?

Here is what I mean if it was unclear

user7455531
  • 25
  • 1
  • 6
  • Doe [this](http://stackoverflow.com/questions/12819194/javafx-2-2-stage-always-on-top) work? – James_D Jan 31 '17 at 20:26
  • Nope, I just did `stage.setAlwaysOnTop(false);` and it didnt help @James_D – user7455531 Jan 31 '17 at 21:02
  • Well, if you want it to be always on top, do you think that `stage.setAlwaysOnTop(true);` might work a little better? – James_D Jan 31 '17 at 21:03
  • I said I want it to stay on the desktop and never come to the front @James_D – user7455531 Jan 31 '17 at 21:04
  • OK, I misunderstood "it's quite annoying when the app goes to the back". I thought you wanted to prevent it going to the back. Simply calling `stage.toBack()` doesn't work? – James_D Jan 31 '17 at 21:06
  • Nope, sorry if it was unclear. Is there a similar method to 'setAlwaysOnTop();` that would keep it at the back? @James_D – user7455531 Jan 31 '17 at 21:07

0 Answers0