Relative Content

Tag Archive for javafxborderpane

How to stop JavaFX BorderPane from resizing too small for contents inside

I am currently building a periodic table thing in JavaFX using Scene Builder. I tried setting all the sizes of everything to COMPUTED_SIZE, but that still hasn’t worked. What currently happens is you can always resize the scene to any size, and once the scene is under a certain size, all the containers inside the BorderPane get squished smaller than they should, and their contents get hidden. Is there a way to stop them from resizing too small, or at least lock the scene from resizing after a certain size?
Here is my fxml for the periodic table.