List of usage examples for com.jgoodies.forms.layout ConstantSize.Unit equals
@Override public boolean equals(Object o)
From source file:com.intellij.uiDesigner.radComponents.FormLayoutColumnProperties.java
License:Apache License
private static void showConstantSize(final ConstantSize size, final JComboBox unitsCombo, final JSpinner spinner) { double value = size.getValue(); ConstantSize.Unit unit = size.getUnit(); if (unit.equals(ConstantSize.DIALOG_UNITS_X) || unit.equals(ConstantSize.DIALOG_UNITS_Y)) { unitsCombo.setSelectedItem("dlu"); } else {/*from ww w. j ava2 s. c o m*/ unitsCombo.setSelectedItem(unit.abbreviation()); } spinner.setModel(new SpinnerNumberModel(0.0, 0.0, Double.MAX_VALUE, 1.0)); spinner.setValue(value); }