Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

javafx - Set not resizable for only one stage

I would like to know, how to solve one problem.

OK. I have two scenes. I want to set not resizable to first scene, but the second one is still resizable. I don't know how to do it.

 

Do you have any idea?

Thanks for your help.

like image 576
t.piwowarczyk Avatar asked Feb 05 '23 02:02

t.piwowarczyk


1 Answers

Your scene can change scenes as much as you need and use the method setResizable

Scene scene = new Scene(bp);
primaryStage.setScene(scene);
primaryStage.setResizable(false);
like image 140
ΦXocę 웃 Пepeúpa ツ Avatar answered Feb 07 '23 17:02

ΦXocę 웃 Пepeúpa ツ