Startup
This commit is contained in:
@@ -63,7 +63,7 @@ public class TestScan extends Panel {
|
||||
jLabel3.setHorizontalAlignment(javax.swing.SwingConstants.TRAILING);
|
||||
jLabel3.setText("Steps:");
|
||||
|
||||
spinnerSteps.setModel(new javax.swing.SpinnerNumberModel(0, 0, 100, 1));
|
||||
spinnerSteps.setModel(new javax.swing.SpinnerNumberModel(10, 0, 100, 1));
|
||||
|
||||
buttonStart.setText("Start");
|
||||
buttonStart.addActionListener(new java.awt.event.ActionListener() {
|
||||
@@ -149,9 +149,14 @@ public class TestScan extends Panel {
|
||||
pars.add(spinnerStart.getValue());
|
||||
pars.add(spinnerEnd.getValue());
|
||||
pars.add(spinnerSteps.getValue());
|
||||
runAsync("TestScan", pars);
|
||||
runAsync("test/TestScan", pars).handle((ret, ex)->{
|
||||
if (ex != null){
|
||||
showException((Exception)ex);
|
||||
}
|
||||
return ret;
|
||||
});
|
||||
} catch (Exception ex) {
|
||||
Logger.getLogger(TestScan.class.getName()).log(Level.SEVERE, null, ex);
|
||||
showException((Exception)ex);
|
||||
}
|
||||
}//GEN-LAST:event_buttonStartActionPerformed
|
||||
|
||||
|
||||
Reference in New Issue
Block a user