JavaFX ComboBox Dropdown Layout

685 Views Asked by At

I have a BorderPane that in its CENTER has a a grid pane with 2 combobox. On it's NORTH , it has a header pane. And in its SOUTH has a pane with navigation buttons. The problem here is that when I click the combobox, the dropdown menu covers the SOUTH pane as you see in the picture. Is there a way to bind dropdown with the CENTER pane, so that it cannot go over any of the SOUTH or NORTH panes. Thanks in advance.

enter image description here

1

There are 1 best solutions below

3
On

You can control the number of visible items in the open dropdown using the visibleRowCount property on the dropdown.

The maximum number of rows to be visible in the ComboBox popup when it is showing. By default this value is 10, but this can be changed to increase or decrease the height of the popup.

See JavaDoc.