-1

I've seen frame.setAlwaysOnTop(true); with JFrame but I need the frame to do just opposite, always on bottom. How I can do it?

Piyush Mishra
  • 327
  • 1
  • 11
  • 1
    The question here would be... Why? This could be a really bad UX... I'd need to minimize all other apps in order to use it... However [this](https://stackoverflow.com/questions/2032248/making-an-unfocusable-window-in-java) might be related – Frakcool Oct 23 '17 at 18:24
  • I need it because I'm trying to make someting like desktop manager. – Piyush Mishra Oct 23 '17 at 18:32
  • You could use a combination of a `Swing `Timer` and [`Window#toBack`](https://docs.oracle.com/javase/8/docs/api/java/awt/Window.html#toBack--) to force the window to the bottom of the window stack, but I'm not sure what advantage it would bring you. I'd also be considered about the ability for a user to interact with the window as well – MadProgrammer Oct 23 '17 at 19:41
  • *"I need it because I'm trying to make someting like desktop manager"* If you mean this frame is supposed to somehow manage other apps which were not launched by it, then Java is the wrong language for this. Use something that can reach further into the bowels of the OS. This will likely mean the language is specific to the OS (e.g. .Net for Windows). – Andrew Thompson Oct 24 '17 at 01:16

1 Answers1

1

If you don't want the user to interact with it just use setVisible(false) and set it true if/when needed