How can I prevent maximizing a JavaFX window to fullscreen? -


i have done this...

mystage.initstyle(stagestyle.utility); 

which works fine removing maximize button can still double click on window title bar (in windows) maximize window.

i tried not fire.

mystage.fullscreenproperty().addlistener(new changelistener<boolean>() {             @override             public void changed(observablevalue<? extends boolean> prop, boolean wasiconified, boolean isiconified) {                 system.out.println("ignore fullscreen");             }         }); 

is there other way consume event has no effect?

if don't want user resize window @ all, can set stage's resizable property false.


Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -