![JAR search and dependency download from the Maven repository](/logo.png)
crcl.ui.LengthUnitComboBox Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of crcl4java-ui Show documentation
Show all versions of crcl4java-ui Show documentation
User interfaces for CRCL Simulated Robot Server and Client Pendant.
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
package crcl.ui;
import crcl.base.LengthUnitEnumType;
import java.util.logging.Logger;
import javax.swing.DefaultComboBoxModel;
import javax.swing.JComboBox;
/**
* Combo Box with model set to LengthUnitEnumType values.
*
* @author Will Shackleford {@literal }
*/
public class LengthUnitComboBox extends JComboBox{
public LengthUnitComboBox() {
setModel(new DefaultComboBoxModel<>(LengthUnitEnumType.values()));
setSelectedItem(LengthUnitEnumType.MILLIMETER);
}
@Override
public LengthUnitEnumType getSelectedItem() {
return (LengthUnitEnumType) super.getSelectedItem();
}
private static final Logger LOG = Logger.getLogger(LengthUnitComboBox.class.getName());
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy