comboBoxSpectrum.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent arg0) {
String sItem = (String) comboBoxSpectrum.getSelectedItem();
objectValue = new Axis();
objectValue.setAxis(sItem);
objectValue.setType(Axis.SPECTRUM_TYPE);
fireAxisCellEditorChanged();
}
});
comboBoxImage.addActionListener(new ActionListener() {
@Override
public void actionPerformed(ActionEvent arg0) {
String actionCommand = arg0.getActionCommand();
if (arg0.getModifiers() == InputEvent.BUTTON1_MASK
|| !actionCommand.equals("comboBoxChanged")) {
String sItem = (String) comboBoxImage.getSelectedItem();
objectValue = new Axis();
if (sItem.equals(Axis.Y1)) {
objectValue.setAxis(Axis.Y1_SINGLE);
}
if (sItem.equals(Axis.Y2)) {
objectValue.setAxis(Axis.Y2_SINGLE);