From a74625b0e1ffb1a6ec7001566a46e2515b05d6c0 Mon Sep 17 00:00:00 2001 From: sfop Date: Fri, 26 Aug 2016 16:44:19 +0200 Subject: [PATCH] Startup --- plugins/Cameras.java | 23 +++-------------------- 1 file changed, 3 insertions(+), 20 deletions(-) diff --git a/plugins/Cameras.java b/plugins/Cameras.java index 2386b55..3550e13 100644 --- a/plugins/Cameras.java +++ b/plugins/Cameras.java @@ -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