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: enter image description here

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

Popular posts from this blog

How has firefox/gecko HTML+CSS rendering changed in version 38? -

javascript - Complex json ng-repeat -

jquery - Cloning of rows and columns from the old table into the new with colSpan and rowSpan -