Closedown

This commit is contained in:
x07maop
2015-06-17 09:33:31 +02:00
parent 757d920459
commit c74e8b63ce
2 changed files with 3 additions and 0 deletions

View File

@@ -299,6 +299,7 @@
<Property name="model" type="javax.swing.SpinnerModel" editor="org.netbeans.modules.form.editors2.SpinnerModelEditor">
<SpinnerModel initial="0.0" maximum="90.0" minimum="0.0" numberType="java.lang.Double" stepSize="1.0" type="number"/>
</Property>
<Property name="enabled" type="boolean" value="false"/>
</Properties>
</Component>
</SubComponents>

View File

@@ -239,6 +239,7 @@ public class EnergyScan extends Panel {
jLabel9.setText("Alpha:");
spinnerAlpha.setModel(new javax.swing.SpinnerNumberModel(0.0d, 0.0d, 90.0d, 1.0d));
spinnerAlpha.setEnabled(false);
javax.swing.GroupLayout panelParametersLayout = new javax.swing.GroupLayout(panelParameters);
panelParameters.setLayout(panelParametersLayout);
@@ -449,6 +450,7 @@ public class EnergyScan extends Panel {
spinnerDelay.setValue(Double.valueOf(tokens[3].trim()));
comboMode.setSelectedIndex(Integer.valueOf(tokens[4].trim()));
spinnerOffset.setValue(Double.valueOf(tokens[5].trim()));
spinnerAlpha.setEnabled(comboMode.getSelectedItem().equals("LINEAR"));
} catch (Exception ex) {
SwingUtils.showException(this, ex);
}