UnitComboBox() { LengthUnit[] units = LengthUnit.getAll(); for (LengthUnit unit : units) { addItem(unit); } setFixedSize(); }