Im just changing from AWT to JavaFX. In AWT I could call pack() and the Frame sizes itself: The Frame after pack() in AWT
When im trying to programm the same window in JavaFX it looks like this, becaus i couldnt find somethin like pack():
The Frame in JavaFX without pack()
Is there an easy method like pack() in JavaFX so i can size my window fast?
Dont mark my question as duplicated, it isnt -.-. By the way, it is not the same question as this: JavaFX equivalent of Swing's pack() The reason is, that sizeToScene() does not work here. I want to resize all components in the same way as pack() has it done in AWT. that "sizeToScene()" stuff doesnt do so, it just sets the size of the stage to the size of the scene, and that is not what im looking for. As you see in my second picture, the size of the scene is already the same size of the stage, but the controls doesnt look "packed()" Thanks and regards