user interface - How to make javafx choiceBox fit column width -
i have dialog window created dinamically. there have textfields , choiceboxes. text fields fits column widths , choiceboxes not. have @ pic:
i need choicebox of same width textfield elements added in way:
addingdialogpane.add(namelabel, 0, 1); addingdialogpane.add(name, 1, 1); addingdialogpane.add(extuidlabel, 0, 2); addingdialogpane.add(extuid, 1, 2); addingdialogpane.add(is_folder, 0, 3); addingdialogpane.add(parentlabel, 0, 4); addingdialogpane.add(parent, 1, 4); addingdialogpane.add(confirm, 1, 5);
upd: i've tryed use
parent.prefwidthproperty().add(name.getwidth());
- no effect i've tryed
parent.prefwidth(double);
no effect
set maxwidth property of to:
extuid.setmaxwidth( double.positive_infinity );
Comments
Post a Comment