How do I get an image in an ImageView to automatically resize such that it always fits the parent node?
Here is a small code example:
@Override publi
Use ScrollPane or simply Pane to overcome this problem: Example:
img_view1.fitWidthProperty().bind(scrollpane_imageview1.widthProperty()); img_view1.fitHeightProperty().bind(scrollpane_imageview1.heightProperty());