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?
- "need to hide and close button" is unclear. Also do you want a title bar? Maybe draw what you want.brian– brian2015-05-27 01:53:35 +00:00Commented May 27, 2015 at 1:53
- @brian Yes, I want ot hide and title baruser2022068– user20220682015-05-27 04:46:11 +00:00Commented May 27, 2015 at 4:46
Add a comment |
1 Answer
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.