I need remove my javafx app from the taskbar. I tried StageStyle.UTILITY
. This is works but I need both UNDECORATED and UTILITY stage styles or another solvings.
Thank you for your replies.
相关问题
- I get an exception when trying to swap elements in
- JFX scale image up and down to parent
- Dragging an undecorated Stage in JavaFX
- JavaFX sample issue
- How to change the font size in ListView in JavaFX?
相关文章
- Low quality icon in taskbar of a Stage. JavaFX
- Loading custom font using JavaFX 8 and css
- Javafx Platform.runLater never running
- JavaFX scrolling table update performance degrades
- Javafx select multiple rows
- Escape from a Number TextField in a JavaFX dialog
- How to merge cells in JavaFX Scene builder?
- Adding view with constructor arguments to a border
Sorry you've been waiting so long for some sort of an answer on this, the following is mainly for people who come to this in the future hoping to discover a way of achieving this.
Let me start of by saying I wouldn't consider the following a solution but more of a workaround. Assigning more than one
initStyle
to a stage is not possible however hiding the application from the task-bar and assigning aninitStyle
other than utility to the stage that is shown is.To achieve this one must create two stages, the stage they want the user to see, and an another stage that will be considered the parent of the main stage and will be of
initStyle.UTILITY
this will prevent the icon from showing in the task-bar.Below you can see the hello world example from oracles documentation modified to allow for an undecorated window with no icon (Note if one wanted to achieve a transparent/decorated window they could do so by changing the style of
mainStage
).