It is necessary that Scene always be square. So you need to follow the dimensions of the Stage. That is, if the user changes the width of the window (stage), the height of the window (stage) should automatically change. Is there a method that does this? (for example, stage.setProportional (true) )

Is it reasonable to influence the dimensions of a Scene by changing the Stage? (I think that Scene automatically adjusts to the dimensions of the Stage, while the dimensions of the Scene cannot be controlled directly after its creation)

No matter what Scene was exactly square. The main thing is to keep the proportions of the window when the user changes its size. How to do it?

  • So important or not important to square? - Enikeyschik
  • I think it is necessary to put the listener to change the size and change the second component in it. It is not clear how to be with the corners, when both sides move at once - Maxim
  • @ Enikeyschik, I understand how to make a scene square, so I say that this is not the main thing. That is, in JavaFX there is no such function that preserves the proportionality of the window? The question "what to do with the corners?" I'm also interested. - Evgeniy Tkachenko

0