0

I need to use StageStyle utility because I need to hide window icon in taskbar. However, I also need to hide and close button. How to do it? Or maybe there is another solution - no window title bar + no icon in task bar?

1 Answers1

2

This answer is more of a general one: The core problem is that JavaFX doesn't allow you to hide the taskbar icon. So I guess you really don't want to use a Utility StageStyle, but rather are forced to.

Swing allows you to hide the taskbar icon. So the hackaround is simple: Use JavaFX inside a Swing JFrame and hide it from the taskbar.

You can take a look at the widget code in the answer here as an example.

Community
  • 1
  • 1
Roland
  • 18,114
  • 12
  • 62
  • 93