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?

2
  • "need to hide and close button" is unclear. Also do you want a title bar? Maybe draw what you want. Commented May 27, 2015 at 1:53
  • @brian Yes, I want ot hide and title bar Commented May 27, 2015 at 4:46

1 Answer 1

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.

Sign up to request clarification or add additional context in comments.

Comments