This commit is contained in:
sfop
2016-08-26 16:44:19 +02:00
parent 820e3362c3
commit a74625b0e1
+3 -20
View File
@@ -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