user interface - JavaFX switching scenes with different sizes -


i testing jewelsea's work small javafx framework , wondering how possible adapt change view between scene of different sizes ? because far know, every changed scene fits main vbox size.

edit : here things i've tried sizetoscene()

on main.java

@override     public void start(stage stage) throws exception{         stage.settitle("vista viewer");          stage.setscene(             createscene(                 loadmainpane()             )         );         stage.sizetoscene();         stage.show();     } 

or on maincontroller.java

public void setvista(node node) {         stage stage = (stage) vistaholder.getscene().getwindow();         vistaholder.getchildren().setall(node);         stage.sizetoscene();     } 

i understand how first example isn't right since it's happening once, second ?


Comments

Popular posts from this blog

python - Healpy: From Data to Healpix map -

c - Bitwise operation with (signed) enum value -

xslt - Unnest parent nodes by child node -