I created an UI with JavaFX but have some problems with the layout. Basically I created a gridpane with a bunch of nodes. Here's the basic grid with the lines visible:
This is how I add all the nodes:
lEncoderName.setMinHeight(0);
fxEncoderName.setMinHeight(0);
addRow(0, lEncoderName, fxEncoderName);
getRowConstraints().add(new RowConstraints(ROW_HEIGHT));
lNodeType.setMinHeight(0);
fxNodeType.setMinHeight(0);
addRow(1, lNodeType, fxNodeType);
getRowConstraints().add(new RowConstraints(ROW_HEIGHT));
// MIDI
lMidiType.setMinHeight(0);
fxMidiType.setMinHeight(0);
addRow(getRowCount(), lMidiType, fxMidiType);
getRowConstraints().add(new RowConstraints(ROW_HEIGHT));
lMidiName.setMinHeight(0);
fxMidiName.setMinHeight(0);
addRow(getRowCount(), lMidiName, fxMidiName);
getRowConstraints().add(new RowConstraints(ROW_HEIGHT));
lDumpPos.setMinHeight(0);
fxDumpPos.setMinHeight(0);
addRow(getRowCount(), lDumpPos, fxDumpPos);
getRowConstraints().add(new RowConstraints(ROW_HEIGHT));
and so on... My problem is I want to display nodes at specific row and colum indexes, but I don't know how. For example here, I added a bunch of nodes before my "Value Type" Label, there's the space. Depending on selections, the nodes show. But I want if they do not show, to move my nodes to different indexes in the grid. So the "Value Nodes" should be right underneath "Editbuffer Position":
Basically I'm searching for a method to display nodes at a new row and column than in the order I added them, without destroying the grid.