Startup
This commit is contained in:
+3
-20
@@ -285,26 +285,9 @@ public class Cameras extends Panel {
|
||||
}//GEN-LAST:event_comboCamerasActionPerformed
|
||||
|
||||
private void buttonConfigActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_buttonConfigActionPerformed
|
||||
try{
|
||||
final ConfigDialog dlg = new ConfigDialog((Frame) getTopLevelAncestor(), false);
|
||||
dlg.setTitle("Device Configuration: " + cameraName);
|
||||
dlg.setConfig(camera.getConfig());
|
||||
dlg.setDefaultCloseOperation(DISPOSE_ON_CLOSE);
|
||||
dlg.setListener((StandardDialog sd, boolean accepted) -> {
|
||||
if (sd.getResult()) {
|
||||
try {
|
||||
camera.getConfig().save();
|
||||
} catch (IOException ex) {
|
||||
showException(ex);
|
||||
}
|
||||
}
|
||||
});
|
||||
dlg.setVisible(true);
|
||||
SwingUtils.centerComponent(getTopLevelAncestor(), dlg);
|
||||
dlg.requestFocus();
|
||||
} catch(Exception ex){
|
||||
showException(ex);
|
||||
}
|
||||
if (camera!=null){
|
||||
this.showDeviceConfigDialog(camera, false);
|
||||
}
|
||||
}//GEN-LAST:event_buttonConfigActionPerformed
|
||||
|
||||
// Variables declaration - do not modify//GEN-BEGIN:variables
|
||||
|
||||
Reference in New Issue
Block a user