N
N
Neonoviiwolf2018-04-23 02:58:09
Java
Neonoviiwolf, 2018-04-23 02:58:09

How to prevent GridPane resizing?

Good
I can not overcome the problem, there is a GridPane (already tried with Pane, AnchorPane, Vbox and something else). I add an arbitrary number of ImageView to it, I want to limit the height of the GridPane so that it does not climb onto other layouts, but maxHeight / maxWidth does not work (as in other layouts), Google does not help at all, alas.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
H
hHup, 2018-04-23
@TopMetaFizick

GridPane m=new GridPane();
m.setPrefSize(100,200);

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question