Question: how to make an expandable combobox? So that when expanding the window with the mouse, ComboBox also expanded. Required to be sure to the left of the ComboBox was a Label.
Code: (fxml)
<?import javafx.scene.control.ComboBox?> <?import javafx.scene.control.Label?> <?import javafx.scene.layout.*?> <HBox maxHeight="-Infinity" maxWidth="-Infinity" minHeight="-Infinity" minWidth="-Infinity" xmlns="http://javafx.com/javafx/8" xmlns:fx="http://javafx.com/fxml/1"> <children> <AnchorPane> <children> <Label text="Label" AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" /> </children> </AnchorPane> <AnchorPane> <children> <ComboBox AnchorPane.leftAnchor="0.0" AnchorPane.rightAnchor="0.0" /> </children> </AnchorPane> </children> </HBox>