Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

JavaFX 2.0 Window to Tray

I want to develop a service with JavaFX UI (all-in-one). When the user clicks on the Close button I want to move the app to the system tray and keep it opened with all the listeners active.

For now, what I achieved is that when someone clicks on close button the app gets minimized.

Anyone knows how to move the app to the tray (At least in windows systems)?

Thanks

like image 669
Javier Avatar asked Apr 17 '12 12:04

Javier


Video Answer


1 Answers

See this discussion. In summary:

  • at present, the easiest solution seems to be to embed your application in AWT and use AWT to place your application to the system tray
  • the feature is targeted in JavaFX 3.0, i.e. 2013 according to the current roadmap
  • the OP in that discussion uses a circumvoluted method that I have not tested but might do what you need.
like image 169
assylias Avatar answered Oct 23 '22 13:10

assylias