JavaFX: can you create a stage that doesn't show on the task bar and is undecorated? -
i'm trying create stage doesn't appear on windows task bar , undecorated (no borders , no close/minimize/maximize buttons). end goal create tray icon application pop notification windows.
it's similar question want behavior of both stagestyle.utility (which prevents stage showing on task bar) , stagestyle.transparent (which undecorated window).
the referenced question doesn't work me because don't have parent stage make modal window. ideas on how work? thanks
i able workaround issue following code:
stage stage = new stage(); stage.initstyle(stagestyle.utility); stage.setmaxheight(0); stage.setmaxwidth(0); stage.setx(double.max_value); stagestyle.utility avoid creating taskbar icon. set width , height 0 make window small , use stage.setx(double.max_value) place far off screen doesn't show up. it's bit hokey, seems work fine.
Comments
Post a Comment