diff options
author | Bartosz Bosak <bbosak@man.poznan.pl> | 2013-11-18 09:19:21 (GMT) |
---|---|---|
committer | Bartosz Bosak <bbosak@man.poznan.pl> | 2013-11-18 09:19:21 (GMT) |
commit | 47428502f9feaf1b3a898f50061e7e9bc92c8c1f (patch) | |
tree | fe69eb413581aff10cd68eef8115cf0b6760dd92 | |
parent | 8eb8faf4481ba8aee258228b95e5371cab7ccabd (diff) | |
parent | 957bb98b55f50d08b608dff799eefe13014cacee (diff) | |
download | QCG-Data-47428502f9feaf1b3a898f50061e7e9bc92c8c1f.zip QCG-Data-47428502f9feaf1b3a898f50061e7e9bc92c8c1f.tar.gz QCG-Data-47428502f9feaf1b3a898f50061e7e9bc92c8c1f.tar.bz2 |
Syncing merge
9 files changed, 4794 insertions, 9 deletions
diff --git a/idrop-swing/src/main/java/org/irods/jargon/idrop/desktop/gdrop/GDropAuthScheme.java b/idrop-swing/src/main/java/org/irods/jargon/idrop/desktop/gdrop/GDropAuthScheme.java new file mode 100644 index 0000000..30b1f03 --- /dev/null +++ b/idrop-swing/src/main/java/org/irods/jargon/idrop/desktop/gdrop/GDropAuthScheme.java @@ -0,0 +1,32 @@ +/* + * To change this template, choose Tools | Templates + * and open the template in the editor. + */ +package org.irods.jargon.idrop.desktop.gdrop; + +/** + * + * @author gosiaw + */ +public enum GDropAuthScheme { + STANDARD, + /** + * + */ + PEM, + P12, + KEYSTORE, + PROXY, + /** + * + */ + KEYFS + ; + + String getTextValue() { + return this.toString(); + } + + + +} diff --git a/idrop-swing/src/main/java/org/irods/jargon/idrop/desktop/gdrop/GDropGridAccount.java b/idrop-swing/src/main/java/org/irods/jargon/idrop/desktop/gdrop/GDropGridAccount.java new file mode 100644 index 0000000..0572312 --- /dev/null +++ b/idrop-swing/src/main/java/org/irods/jargon/idrop/desktop/gdrop/GDropGridAccount.java @@ -0,0 +1,93 @@ +/* + * To change this template, choose Tools | Templates + * and open the template in the editor. + */ +package org.irods.jargon.idrop.desktop.gdrop; + +import org.irods.jargon.core.connection.AuthScheme; +import org.irods.jargon.transfer.dao.domain.GridAccount; + +/** + * + * @author gosiaw + */ +public class GDropGridAccount extends GridAccount { + private GDropAuthScheme gDropAuthScheme; + private String plgridUserName; + private String plgridPassword; + private String keyPassword; + + public GDropGridAccount() { + super(); + + // Set standard auth scheme by default + this.gDropAuthScheme = gDropAuthScheme.STANDARD; + } + + public GDropGridAccount(GridAccount gridAccount) { + super(); + + // Rewrite all properties from gridAccount + this.setComment(gridAccount.getComment()); + this.setCreatedAt(gridAccount.getCreatedAt()); + this.setDefaultPath(gridAccount.getDefaultPath()); + this.setDefaultResource(gridAccount.getDefaultResource()); + this.setHost(gridAccount.getHost()); + this.setId(gridAccount.getId()); + this.setPassword(gridAccount.getPassword()); + this.setPort(gridAccount.getPort()); + // this.setPreset(gridAccount.getPreset()); + this.setUpdatedAt(gridAccount.getUpdatedAt()); + this.setUserName(gridAccount.getUserName()); + this.setZone(gridAccount.getZone()); + + // Set standard auth scheme by default + this.gDropAuthScheme = gDropAuthScheme.STANDARD; + this.setAuthScheme(AuthScheme.STANDARD); + + this.plgridUserName = null; + this.plgridPassword = null; + this.keyPassword = null; + } + + public GDropAuthScheme getGDropAuthScheme() { + return gDropAuthScheme; + } + + public void setgDropAuthScheme(GDropAuthScheme gDropAuthScheme) { + this.gDropAuthScheme = gDropAuthScheme; + if (gDropAuthScheme == gDropAuthScheme.STANDARD) { + setAuthScheme(AuthScheme.STANDARD); + } else { + // GSI -> GSI; KEYSF -> GSI + setAuthScheme(AuthScheme.GSI); + } + } + + public String getPlgridUserName() { + return plgridUserName; + } + + public String getPlgridPassword() { + return plgridPassword; + } + + public String getKeyPassword() { + return keyPassword; + } + + public void setPlgridUserName(String plgridUserName) { + this.plgridUserName = plgridUserName; + } + + public void setPlgridPassword(String plgridPassword) { + this.plgridPassword = plgridPassword; + } + + public void setKeyPassword(String keyPassword) { + this.keyPassword = keyPassword; + } + + + +} diff --git a/idrop-swing/src/main/java/org/irods/jargon/idrop/desktop/gdrop/GDropGridMemoryDialog.java b/idrop-swing/src/main/java/org/irods/jargon/idrop/desktop/gdrop/GDropGridMemoryDialog.java index aec1a8f..a495331 100644 --- a/idrop-swing/src/main/java/org/irods/jargon/idrop/desktop/gdrop/GDropGridMemoryDialog.java +++ b/idrop-swing/src/main/java/org/irods/jargon/idrop/desktop/gdrop/GDropGridMemoryDialog.java @@ -50,7 +50,7 @@ public class GDropGridMemoryDialog extends javax.swing.JDialog implements private final IDROPCore idropCore; // private final iDrop idrop; private final IRODSAccount savedAccount; - private GridAccount defaultAccount; + private GDropGridAccount defaultAccount; public static org.slf4j.Logger log = LoggerFactory.getLogger(MetadataTableModel.class); /** @@ -79,7 +79,7 @@ public class GDropGridMemoryDialog extends javax.swing.JDialog implements gridAccounts = gridAccountService.findAll(); if (gridAccounts.isEmpty() == true) { // Add default grid account - QCG-Data specific feature - defaultAccount = new GridAccount(); + defaultAccount = new GDropGridAccount(); // Loading defaults from file Properties qcgDataProperties = new Properties(); @@ -282,9 +282,9 @@ public class GDropGridMemoryDialog extends javax.swing.JDialog implements // Use the Grid Account data retrieved from the GridInfoTable to retrieve // the full record from the DB - GridAccount getStoredGridAccountFromGridTableData(GridAccount gridTableData) { + GDropGridAccount getStoredGridAccountFromGridTableData(GridAccount gridTableData) { IRODSAccount irodsAccount = null; - GridAccount storedGridAccount = null; + GDropGridAccount storedGridAccount = null; if (gridTableData != null) { try { @@ -299,7 +299,7 @@ public class GDropGridMemoryDialog extends javax.swing.JDialog implements try { storedGridAccount = - idropCore.getConveyorService().getGridAccountService().findGridAccountByIRODSAccount(irodsAccount); + new GDropGridAccount(idropCore.getConveyorService().getGridAccountService().findGridAccountByIRODSAccount(irodsAccount)); } catch (ConveyorExecutionException ex) { Logger.getLogger(GDropGridMemoryDialog.class.getName()).log(Level.SEVERE, null, ex); @@ -535,7 +535,7 @@ public class GDropGridMemoryDialog extends javax.swing.JDialog implements } final ListSelectionModel selectionModel = tableGridInfo.getSelectionModel(); - GridAccount gridAccount = null; + GDropGridAccount gridAccount = null; try { GridInfoTableModel model = (GridInfoTableModel) tableGridInfo.getModel(); GridAccount gridTableData = (GridAccount) model.getRow(row); @@ -543,13 +543,13 @@ public class GDropGridMemoryDialog extends javax.swing.JDialog implements } catch (Exception e) { gridAccount = defaultAccount; } - EditGridInfoDialog editGridInfoDialog = new EditGridInfoDialog( + GDropLoginDialog gdropLoginDialog = new GDropLoginDialog( // null, true, idropCore, gridAccount, idrop); null, true, idropCore, gridAccount); - editGridInfoDialog.setLocation( + gdropLoginDialog.setLocation( (int) dialog.getLocation().getX(), (int) dialog.getLocation().getY()); - editGridInfoDialog.setVisible(true); + gdropLoginDialog.setVisible(true); java.awt.EventQueue.invokeLater(new Runnable() { @Override diff --git a/idrop-swing/src/main/java/org/irods/jargon/idrop/desktop/gdrop/GDropIRODSAccount.java b/idrop-swing/src/main/java/org/irods/jargon/idrop/desktop/gdrop/GDropIRODSAccount.java new file mode 100644 index 0000000..22088aa --- /dev/null +++ b/idrop-swing/src/main/java/org/irods/jargon/idrop/desktop/gdrop/GDropIRODSAccount.java @@ -0,0 +1,65 @@ +/* + * To change this template, choose Tools | Templates + * and open the template in the editor. + */ +package org.irods.jargon.idrop.desktop.gdrop; + +import org.irods.jargon.core.connection.IRODSAccount; +import org.irods.jargon.core.exception.JargonException; + +/** + * + * @author gosiaw + */ +public class GDropIRODSAccount extends IRODSAccount { + private GDropAuthScheme authScheme; + private String comment; + private final String plgridUserName; + private final String plgridPassword; + private final String keyPassword; + + public GDropIRODSAccount(String host, int port, String userName, String password, String homeDirectory, String zone, String defaultStorageResource) { + super(host, port, userName, password, homeDirectory, zone, defaultStorageResource); + this.plgridUserName = null; + this.plgridPassword = null; + this.keyPassword = null; + } + + public GDropIRODSAccount(String host, int port, String userName, String plgridUserName, String plgridPassword, String keyPassword, String homeDirectory, String zone, String defaultStorageResource) { + super(host, port, userName, null, homeDirectory, zone, defaultStorageResource); + this.plgridUserName = plgridUserName; + this.plgridPassword = plgridPassword; + this.keyPassword = keyPassword; + } + + public GDropAuthScheme getGDropAuthenticationScheme() { + return this.authScheme; + } + + public void setGDropAuthenticationScheme(GDropAuthScheme authenticationScheme) { + this.authScheme = authenticationScheme; + } + + public static GDropIRODSAccount instance(String host, int port, String userName, String password, String homeDirectory, String zone, String defaultStorageResource) throws JargonException { + GDropIRODSAccount instance = new GDropIRODSAccount(host, port, userName, password, homeDirectory, zone, defaultStorageResource); + instance.setGDropAuthenticationScheme(GDropAuthScheme.STANDARD); + return instance; + } + + public static GDropIRODSAccount instance(String host, int port, String userName, String password, String homeDirectory, String zone, String defaultStorageResource, GDropAuthScheme authenticationScheme) throws JargonException { + GDropIRODSAccount instance = GDropIRODSAccount.instance(host, port, userName, password, homeDirectory, zone, defaultStorageResource); + instance.setGDropAuthenticationScheme(authenticationScheme); + return instance; + } + + public static GDropIRODSAccount instance(String host, int port, String userName, String plgridUserName, String plgridPassword, String keyPassword, String homeDirectory, String zone, String defaultStorageResource) throws JargonException { + GDropIRODSAccount instance = new GDropIRODSAccount(host, port, userName, plgridUserName, plgridPassword, keyPassword, homeDirectory, zone, defaultStorageResource); + instance.setGDropAuthenticationScheme(GDropAuthScheme.KEYFS); + return instance; + } + + void setComment(String comment) { + this.comment = comment; + } + +} diff --git a/idrop-swing/src/main/java/org/irods/jargon/idrop/desktop/gdrop/GDropLoginDialog.form b/idrop-swing/src/main/java/org/irods/jargon/idrop/desktop/gdrop/GDropLoginDialog.form new file mode 100644 index 0000000..2e8b19a --- /dev/null +++ b/idrop-swing/src/main/java/org/irods/jargon/idrop/desktop/gdrop/GDropLoginDialog.form @@ -0,0 +1,988 @@ +<?xml version="1.0" encoding="UTF-8" ?> + +<Form version="1.5" maxVersion="1.8" type="org.netbeans.modules.form.forminfo.JDialogFormInfo"> + <NonVisualComponents> + <Component class="javax.swing.JFileChooser" name="jFileChooser1"> + </Component> + </NonVisualComponents> + <Properties> + <Property name="defaultCloseOperation" type="int" value="2"/> + </Properties> + <SyntheticProperties> + <SyntheticProperty name="formSizePolicy" type="int" value="1"/> + <SyntheticProperty name="generateCenter" type="boolean" value="false"/> + </SyntheticProperties> + <AuxValues> + <AuxValue name="FormSettings_autoResourcing" type="java.lang.Integer" value="1"/> + <AuxValue name="FormSettings_autoSetComponentName" type="java.lang.Boolean" value="false"/> + <AuxValue name="FormSettings_generateFQN" type="java.lang.Boolean" value="true"/> + <AuxValue name="FormSettings_generateMnemonicsCode" type="java.lang.Boolean" value="false"/> + <AuxValue name="FormSettings_i18nAutoMode" type="java.lang.Boolean" value="true"/> + <AuxValue name="FormSettings_layoutCodeTarget" type="java.lang.Integer" value="2"/> + <AuxValue name="FormSettings_listenerGenerationStyle" type="java.lang.Integer" value="0"/> + <AuxValue name="FormSettings_variablesLocal" type="java.lang.Boolean" value="false"/> + <AuxValue name="FormSettings_variablesModifier" type="java.lang.Integer" value="2"/> + <AuxValue name="designerSize" type="java.awt.Dimension" value="-84,-19,0,5,115,114,0,18,106,97,118,97,46,97,119,116,46,68,105,109,101,110,115,105,111,110,65,-114,-39,-41,-84,95,68,20,2,0,2,73,0,6,104,101,105,103,104,116,73,0,5,119,105,100,116,104,120,112,0,0,1,-15,0,0,1,-111"/> + </AuxValues> + + <Layout class="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout"/> + <SubComponents> + <Container class="javax.swing.JPanel" name="pnlBasicLoginParameters"> + <Properties> + <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor"> + <Dimension value="[450, 250]"/> + </Property> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout" value="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout$GridBagConstraintsDescription"> + <GridBagConstraints gridX="0" gridY="0" gridWidth="1" gridHeight="1" fill="0" ipadX="0" ipadY="0" insetsTop="0" insetsLeft="0" insetsBottom="0" insetsRight="0" anchor="10" weightX="0.0" weightY="0.0"/> + </Constraint> + </Constraints> + + <Layout class="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout"/> + <SubComponents> + <Component class="javax.swing.JLabel" name="lblHost"> + <Properties> + <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor"> + <ResourceString bundle="org/irods/jargon/idrop/desktop/gdrop/Bundle.properties" key="GDropLoginDialog.lblHost.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/> + </Property> + <Property name="horizontalTextPosition" type="int" value="4"/> + <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor"> + <Dimension value="[150, 25]"/> + </Property> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout" value="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout$GridBagConstraintsDescription"> + <GridBagConstraints gridX="0" gridY="0" gridWidth="1" gridHeight="1" fill="0" ipadX="0" ipadY="0" insetsTop="0" insetsLeft="0" insetsBottom="0" insetsRight="0" anchor="10" weightX="0.0" weightY="0.0"/> + </Constraint> + </Constraints> + </Component> + <Component class="javax.swing.JLabel" name="lblHostAddress"> + <Properties> + <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor"> + <ResourceString bundle="org/irods/jargon/idrop/desktop/gdrop/Bundle.properties" key="GDropLoginDialog.lblHostAddress.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/> + </Property> + <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor"> + <Dimension value="[180, 25]"/> + </Property> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout" value="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout$GridBagConstraintsDescription"> + <GridBagConstraints gridX="1" gridY="0" gridWidth="1" gridHeight="1" fill="0" ipadX="0" ipadY="0" insetsTop="0" insetsLeft="0" insetsBottom="0" insetsRight="0" anchor="10" weightX="0.0" weightY="0.0"/> + </Constraint> + </Constraints> + </Component> + <Component class="javax.swing.JLabel" name="lblPort"> + <Properties> + <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor"> + <ResourceString bundle="org/irods/jargon/idrop/desktop/gdrop/Bundle.properties" key="GDropLoginDialog.lblPort.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/> + </Property> + <Property name="horizontalTextPosition" type="int" value="4"/> + <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor"> + <Dimension value="[150, 25]"/> + </Property> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout" value="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout$GridBagConstraintsDescription"> + <GridBagConstraints gridX="0" gridY="1" gridWidth="1" gridHeight="1" fill="0" ipadX="0" ipadY="0" insetsTop="0" insetsLeft="0" insetsBottom="0" insetsRight="0" anchor="10" weightX="0.0" weightY="0.0"/> + </Constraint> + </Constraints> + </Component> + <Component class="javax.swing.JTextField" name="txtPort"> + <Properties> + <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor"> + <ResourceString bundle="org/irods/jargon/idrop/desktop/gdrop/Bundle.properties" key="GDropLoginDialog.txtPort.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/> + </Property> + <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor"> + <Dimension value="[180, 25]"/> + </Property> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout" value="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout$GridBagConstraintsDescription"> + <GridBagConstraints gridX="1" gridY="1" gridWidth="1" gridHeight="1" fill="0" ipadX="0" ipadY="0" insetsTop="0" insetsLeft="0" insetsBottom="0" insetsRight="0" anchor="10" weightX="0.0" weightY="0.0"/> + </Constraint> + </Constraints> + </Component> + <Component class="javax.swing.JLabel" name="lblZone"> + <Properties> + <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor"> + <ResourceString bundle="org/irods/jargon/idrop/desktop/gdrop/Bundle.properties" key="GDropLoginDialog.lblZone.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/> + </Property> + <Property name="horizontalTextPosition" type="int" value="4"/> + <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor"> + <Dimension value="[150, 25]"/> + </Property> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout" value="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout$GridBagConstraintsDescription"> + <GridBagConstraints gridX="0" gridY="2" gridWidth="1" gridHeight="1" fill="0" ipadX="0" ipadY="0" insetsTop="0" insetsLeft="0" insetsBottom="0" insetsRight="0" anchor="10" weightX="0.0" weightY="0.0"/> + </Constraint> + </Constraints> + </Component> + <Component class="javax.swing.JLabel" name="lblZoneValue"> + <Properties> + <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor"> + <ResourceString bundle="org/irods/jargon/idrop/desktop/gdrop/Bundle.properties" key="GDropLoginDialog.lblZoneValue.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/> + </Property> + <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor"> + <Dimension value="[180, 25]"/> + </Property> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout" value="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout$GridBagConstraintsDescription"> + <GridBagConstraints gridX="1" gridY="2" gridWidth="1" gridHeight="1" fill="0" ipadX="0" ipadY="0" insetsTop="0" insetsLeft="0" insetsBottom="0" insetsRight="0" anchor="10" weightX="0.0" weightY="0.0"/> + </Constraint> + </Constraints> + </Component> + <Component class="javax.swing.JLabel" name="lblUsername"> + <Properties> + <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor"> + <ResourceString bundle="org/irods/jargon/idrop/desktop/gdrop/Bundle.properties" key="GDropLoginDialog.lblUsername.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/> + </Property> + <Property name="horizontalTextPosition" type="int" value="4"/> + <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor"> + <Dimension value="[150, 25]"/> + </Property> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout" value="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout$GridBagConstraintsDescription"> + <GridBagConstraints gridX="0" gridY="3" gridWidth="1" gridHeight="1" fill="0" ipadX="0" ipadY="0" insetsTop="0" insetsLeft="0" insetsBottom="0" insetsRight="0" anchor="10" weightX="0.0" weightY="0.0"/> + </Constraint> + </Constraints> + </Component> + <Component class="javax.swing.JTextField" name="txtUsername"> + <Properties> + <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor"> + <ResourceString bundle="org/irods/jargon/idrop/desktop/gdrop/Bundle.properties" key="GDropLoginDialog.txtUsername.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/> + </Property> + <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor"> + <Dimension value="[180, 25]"/> + </Property> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout" value="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout$GridBagConstraintsDescription"> + <GridBagConstraints gridX="1" gridY="3" gridWidth="1" gridHeight="1" fill="0" ipadX="0" ipadY="0" insetsTop="0" insetsLeft="0" insetsBottom="0" insetsRight="0" anchor="10" weightX="0.0" weightY="0.0"/> + </Constraint> + </Constraints> + </Component> + <Component class="javax.swing.JLabel" name="lblAuthScheme"> + <Properties> + <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor"> + <ResourceString bundle="org/irods/jargon/idrop/desktop/gdrop/Bundle.properties" key="GDropLoginDialog.lblAuthScheme.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/> + </Property> + <Property name="horizontalTextPosition" type="int" value="4"/> + <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor"> + <Dimension value="[150, 25]"/> + </Property> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout" value="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout$GridBagConstraintsDescription"> + <GridBagConstraints gridX="0" gridY="6" gridWidth="1" gridHeight="1" fill="0" ipadX="0" ipadY="0" insetsTop="0" insetsLeft="0" insetsBottom="0" insetsRight="0" anchor="10" weightX="0.0" weightY="0.0"/> + </Constraint> + </Constraints> + </Component> + <Component class="javax.swing.JComboBox" name="cbAuthScheme"> + <Properties> + <Property name="model" type="javax.swing.ComboBoxModel" editor="org.netbeans.modules.form.editors2.ComboBoxModelEditor"> + <StringArray count="4"> + <StringItem index="0" value="Item 1"/> + <StringItem index="1" value="Item 2"/> + <StringItem index="2" value="Item 3"/> + <StringItem index="3" value="Item 4"/> + </StringArray> + </Property> + <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor"> + <Dimension value="[180, 25]"/> + </Property> + </Properties> + <Events> + <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="cbAuthSchemeActionPerformed"/> + </Events> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout" value="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout$GridBagConstraintsDescription"> + <GridBagConstraints gridX="1" gridY="6" gridWidth="1" gridHeight="1" fill="0" ipadX="0" ipadY="0" insetsTop="0" insetsLeft="0" insetsBottom="0" insetsRight="0" anchor="10" weightX="0.0" weightY="0.0"/> + </Constraint> + </Constraints> + </Component> + <Component class="javax.swing.JLabel" name="lblDefaultResource"> + <Properties> + <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor"> + <ResourceString bundle="org/irods/jargon/idrop/desktop/gdrop/Bundle.properties" key="GDropLoginDialog.lblDefaultResource.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/> + </Property> + <Property name="horizontalTextPosition" type="int" value="4"/> + <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor"> + <Dimension value="[150, 25]"/> + </Property> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout" value="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout$GridBagConstraintsDescription"> + <GridBagConstraints gridX="0" gridY="7" gridWidth="1" gridHeight="1" fill="0" ipadX="0" ipadY="0" insetsTop="0" insetsLeft="0" insetsBottom="0" insetsRight="0" anchor="10" weightX="0.0" weightY="0.0"/> + </Constraint> + </Constraints> + </Component> + <Component class="javax.swing.JTextField" name="txtDefaultResource"> + <Properties> + <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor"> + <ResourceString bundle="org/irods/jargon/idrop/desktop/gdrop/Bundle.properties" key="GDropLoginDialog.txtDefaultResource.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/> + </Property> + <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor"> + <Dimension value="[180, 25]"/> + </Property> + </Properties> + <Events> + <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="txtDefaultResourceActionPerformed"/> + </Events> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout" value="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout$GridBagConstraintsDescription"> + <GridBagConstraints gridX="1" gridY="7" gridWidth="1" gridHeight="1" fill="0" ipadX="0" ipadY="0" insetsTop="0" insetsLeft="0" insetsBottom="0" insetsRight="0" anchor="10" weightX="0.0" weightY="0.0"/> + </Constraint> + </Constraints> + </Component> + <Component class="javax.swing.JLabel" name="lblStartingCollection"> + <Properties> + <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor"> + <ResourceString bundle="org/irods/jargon/idrop/desktop/gdrop/Bundle.properties" key="GDropLoginDialog.lblStartingCollection.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/> + </Property> + <Property name="horizontalTextPosition" type="int" value="4"/> + <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor"> + <Dimension value="[150, 25]"/> + </Property> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout" value="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout$GridBagConstraintsDescription"> + <GridBagConstraints gridX="0" gridY="8" gridWidth="1" gridHeight="1" fill="0" ipadX="0" ipadY="0" insetsTop="0" insetsLeft="0" insetsBottom="0" insetsRight="0" anchor="10" weightX="0.0" weightY="0.0"/> + </Constraint> + </Constraints> + </Component> + <Component class="javax.swing.JTextField" name="txtInitialPath"> + <Properties> + <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor"> + <ResourceString bundle="org/irods/jargon/idrop/desktop/gdrop/Bundle.properties" key="GDropLoginDialog.txtInitialPath.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/> + </Property> + <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor"> + <Dimension value="[180, 25]"/> + </Property> + </Properties> + <Events> + <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="txtInitialPathActionPerformed"/> + </Events> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout" value="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout$GridBagConstraintsDescription"> + <GridBagConstraints gridX="1" gridY="8" gridWidth="1" gridHeight="1" fill="0" ipadX="0" ipadY="0" insetsTop="0" insetsLeft="0" insetsBottom="0" insetsRight="0" anchor="10" weightX="0.0" weightY="0.0"/> + </Constraint> + </Constraints> + </Component> + <Component class="javax.swing.JLabel" name="lblComment"> + <Properties> + <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor"> + <ResourceString bundle="org/irods/jargon/idrop/desktop/gdrop/Bundle.properties" key="GDropLoginDialog.lblComment.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/> + </Property> + <Property name="horizontalTextPosition" type="int" value="4"/> + <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor"> + <Dimension value="[150, 25]"/> + </Property> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout" value="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout$GridBagConstraintsDescription"> + <GridBagConstraints gridX="0" gridY="9" gridWidth="1" gridHeight="1" fill="0" ipadX="0" ipadY="0" insetsTop="0" insetsLeft="0" insetsBottom="0" insetsRight="0" anchor="10" weightX="0.0" weightY="0.0"/> + </Constraint> + </Constraints> + </Component> + <Container class="javax.swing.JScrollPane" name="jScrollPane"> + <Properties> + <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor"> + <Dimension value="[180, 60]"/> + </Property> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout" value="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout$GridBagConstraintsDescription"> + <GridBagConstraints gridX="1" gridY="9" gridWidth="1" gridHeight="3" fill="0" ipadX="0" ipadY="0" insetsTop="0" insetsLeft="0" insetsBottom="0" insetsRight="0" anchor="10" weightX="0.0" weightY="0.0"/> + </Constraint> + </Constraints> + + <Layout class="org.netbeans.modules.form.compat2.layouts.support.JScrollPaneSupportLayout"/> + <SubComponents> + <Component class="javax.swing.JTextField" name="txtComment"> + <Properties> + <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor"> + <ResourceString bundle="org/irods/jargon/idrop/desktop/gdrop/Bundle.properties" key="GDropLoginDialog.txtComment.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/> + </Property> + <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor"> + <Dimension value="[180, 25]"/> + </Property> + </Properties> + </Component> + </SubComponents> + </Container> + </SubComponents> + </Container> + <Container class="javax.swing.JPanel" name="pnlStandardLogin"> + <Properties> + <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor"> + <Dimension value="[450, 100]"/> + </Property> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout" value="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout$GridBagConstraintsDescription"> + <GridBagConstraints gridX="0" gridY="1" gridWidth="1" gridHeight="1" fill="0" ipadX="0" ipadY="0" insetsTop="0" insetsLeft="0" insetsBottom="0" insetsRight="0" anchor="10" weightX="0.0" weightY="0.0"/> + </Constraint> + </Constraints> + + <Layout class="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout"/> + <SubComponents> + <Component class="javax.swing.JLabel" name="lblPassword"> + <Properties> + <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor"> + <ResourceString bundle="org/irods/jargon/idrop/desktop/gdrop/Bundle.properties" key="GDropLoginDialog.lblPassword.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/> + </Property> + <Property name="horizontalTextPosition" type="int" value="4"/> + <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor"> + <Dimension value="[150, 25]"/> + </Property> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout" value="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout$GridBagConstraintsDescription"> + <GridBagConstraints gridX="0" gridY="4" gridWidth="1" gridHeight="1" fill="0" ipadX="0" ipadY="0" insetsTop="0" insetsLeft="0" insetsBottom="0" insetsRight="0" anchor="10" weightX="0.0" weightY="0.0"/> + </Constraint> + </Constraints> + </Component> + <Component class="javax.swing.JPasswordField" name="txtPassword"> + <Properties> + <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor"> + <ResourceString bundle="org/irods/jargon/idrop/desktop/gdrop/Bundle.properties" key="GDropLoginDialog.txtPassword.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/> + </Property> + <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor"> + <Dimension value="[180, 25]"/> + </Property> + </Properties> + <Events> + <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="txtPasswordActionPerformed"/> + </Events> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout" value="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout$GridBagConstraintsDescription"> + <GridBagConstraints gridX="1" gridY="4" gridWidth="1" gridHeight="1" fill="0" ipadX="0" ipadY="0" insetsTop="0" insetsLeft="0" insetsBottom="0" insetsRight="0" anchor="10" weightX="0.0" weightY="0.0"/> + </Constraint> + </Constraints> + </Component> + <Component class="javax.swing.JLabel" name="lblVerifyPassword"> + <Properties> + <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor"> + <ResourceString bundle="org/irods/jargon/idrop/desktop/gdrop/Bundle.properties" key="GDropLoginDialog.lblVerifyPassword.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/> + </Property> + <Property name="horizontalTextPosition" type="int" value="4"/> + <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor"> + <Dimension value="[150, 25]"/> + </Property> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout" value="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout$GridBagConstraintsDescription"> + <GridBagConstraints gridX="0" gridY="5" gridWidth="1" gridHeight="1" fill="0" ipadX="0" ipadY="0" insetsTop="0" insetsLeft="0" insetsBottom="0" insetsRight="0" anchor="10" weightX="0.0" weightY="0.0"/> + </Constraint> + </Constraints> + </Component> + <Component class="javax.swing.JPasswordField" name="txtVerifyPassword"> + <Properties> + <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor"> + <ResourceString bundle="org/irods/jargon/idrop/desktop/gdrop/Bundle.properties" key="GDropLoginDialog.txtVerifyPassword.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/> + </Property> + <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor"> + <Dimension value="[180, 25]"/> + </Property> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout" value="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout$GridBagConstraintsDescription"> + <GridBagConstraints gridX="1" gridY="5" gridWidth="1" gridHeight="1" fill="0" ipadX="0" ipadY="0" insetsTop="0" insetsLeft="0" insetsBottom="0" insetsRight="0" anchor="10" weightX="0.0" weightY="0.0"/> + </Constraint> + </Constraints> + </Component> + </SubComponents> + </Container> + <Container class="javax.swing.JPanel" name="pnlPEMLogin"> + <Properties> + <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor"> + <Dimension value="[450, 100]"/> + </Property> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout" value="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout$GridBagConstraintsDescription"> + <GridBagConstraints gridX="0" gridY="1" gridWidth="1" gridHeight="1" fill="0" ipadX="0" ipadY="0" insetsTop="0" insetsLeft="0" insetsBottom="0" insetsRight="0" anchor="10" weightX="0.0" weightY="0.0"/> + </Constraint> + </Constraints> + + <Layout class="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout"/> + <SubComponents> + <Component class="javax.swing.JLabel" name="lblPEMCert"> + <Properties> + <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor"> + <ResourceString bundle="org/irods/jargon/idrop/desktop/gdrop/Bundle.properties" key="GDropLoginDialog.lblPEMCert.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/> + </Property> + <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor"> + <Dimension value="[105, 25]"/> + </Property> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout" value="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout$GridBagConstraintsDescription"> + <GridBagConstraints gridX="0" gridY="0" gridWidth="1" gridHeight="1" fill="0" ipadX="0" ipadY="0" insetsTop="0" insetsLeft="0" insetsBottom="0" insetsRight="0" anchor="10" weightX="0.0" weightY="0.0"/> + </Constraint> + </Constraints> + </Component> + <Component class="javax.swing.JTextField" name="txtPEMCert"> + <Properties> + <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor"> + <ResourceString bundle="org/irods/jargon/idrop/desktop/gdrop/Bundle.properties" key="GDropLoginDialog.txtPEMCert.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/> + </Property> + <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor"> + <Dimension value="[185, 25]"/> + </Property> + </Properties> + <Events> + <EventHandler event="mousePressed" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="txtPEMCertMousePressed"/> + <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="txtPEMCertActionPerformed"/> + </Events> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout" value="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout$GridBagConstraintsDescription"> + <GridBagConstraints gridX="-1" gridY="-1" gridWidth="1" gridHeight="1" fill="0" ipadX="0" ipadY="0" insetsTop="0" insetsLeft="0" insetsBottom="0" insetsRight="0" anchor="10" weightX="0.0" weightY="0.0"/> + </Constraint> + </Constraints> + </Component> + <Component class="javax.swing.JLabel" name="lblPEMKey"> + <Properties> + <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor"> + <ResourceString bundle="org/irods/jargon/idrop/desktop/gdrop/Bundle.properties" key="GDropLoginDialog.lblPEMKey.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/> + </Property> + <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor"> + <Dimension value="[105, 25]"/> + </Property> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout" value="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout$GridBagConstraintsDescription"> + <GridBagConstraints gridX="0" gridY="1" gridWidth="1" gridHeight="1" fill="0" ipadX="0" ipadY="0" insetsTop="0" insetsLeft="0" insetsBottom="0" insetsRight="0" anchor="10" weightX="0.0" weightY="0.0"/> + </Constraint> + </Constraints> + </Component> + <Component class="javax.swing.JTextField" name="txtPEMKey"> + <Properties> + <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor"> + <ResourceString bundle="org/irods/jargon/idrop/desktop/gdrop/Bundle.properties" key="GDropLoginDialog.txtPEMKey.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/> + </Property> + <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor"> + <Dimension value="[185, 25]"/> + </Property> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout" value="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout$GridBagConstraintsDescription"> + <GridBagConstraints gridX="1" gridY="1" gridWidth="1" gridHeight="1" fill="0" ipadX="0" ipadY="0" insetsTop="0" insetsLeft="0" insetsBottom="0" insetsRight="0" anchor="10" weightX="0.0" weightY="0.0"/> + </Constraint> + </Constraints> + </Component> + <Component class="javax.swing.JLabel" name="lblPEMCertPassword"> + <Properties> + <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor"> + <ResourceString bundle="org/irods/jargon/idrop/desktop/gdrop/Bundle.properties" key="GDropLoginDialog.lblPEMCertPassword.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/> + </Property> + <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor"> + <Dimension value="[105, 25]"/> + </Property> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout" value="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout$GridBagConstraintsDescription"> + <GridBagConstraints gridX="0" gridY="2" gridWidth="1" gridHeight="1" fill="0" ipadX="0" ipadY="0" insetsTop="0" insetsLeft="0" insetsBottom="0" insetsRight="0" anchor="10" weightX="0.0" weightY="0.0"/> + </Constraint> + </Constraints> + </Component> + <Component class="javax.swing.JPasswordField" name="txtPEMCertPassword"> + <Properties> + <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor"> + <ResourceString bundle="org/irods/jargon/idrop/desktop/gdrop/Bundle.properties" key="GDropLoginDialog.txtPEMCertPassword.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/> + </Property> + <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor"> + <Dimension value="[185, 25]"/> + </Property> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout" value="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout$GridBagConstraintsDescription"> + <GridBagConstraints gridX="1" gridY="2" gridWidth="1" gridHeight="1" fill="0" ipadX="0" ipadY="0" insetsTop="0" insetsLeft="0" insetsBottom="0" insetsRight="0" anchor="10" weightX="0.0" weightY="0.0"/> + </Constraint> + </Constraints> + </Component> + <Component class="javax.swing.JButton" name="btnChoosePEMCert"> + <Properties> + <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor"> + <ResourceString bundle="org/irods/jargon/idrop/desktop/gdrop/Bundle.properties" key="GDropLoginDialog.btnChoosePEMCert.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/> + </Property> + <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor"> + <Dimension value="[40, 25]"/> + </Property> + </Properties> + <Events> + <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="btnChoosePEMCertActionPerformed"/> + </Events> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout" value="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout$GridBagConstraintsDescription"> + <GridBagConstraints gridX="2" gridY="0" gridWidth="1" gridHeight="1" fill="0" ipadX="0" ipadY="0" insetsTop="0" insetsLeft="0" insetsBottom="0" insetsRight="0" anchor="10" weightX="0.0" weightY="0.0"/> + </Constraint> + </Constraints> + </Component> + <Component class="javax.swing.JButton" name="btnChoosePEMKey"> + <Properties> + <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor"> + <ResourceString bundle="org/irods/jargon/idrop/desktop/gdrop/Bundle.properties" key="GDropLoginDialog.btnChoosePEMKey.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/> + </Property> + <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor"> + <Dimension value="[40, 25]"/> + </Property> + </Properties> + <Events> + <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="btnChoosePEMKeyActionPerformed"/> + </Events> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout" value="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout$GridBagConstraintsDescription"> + <GridBagConstraints gridX="2" gridY="1" gridWidth="1" gridHeight="1" fill="0" ipadX="0" ipadY="0" insetsTop="0" insetsLeft="0" insetsBottom="0" insetsRight="0" anchor="10" weightX="0.0" weightY="0.0"/> + </Constraint> + </Constraints> + </Component> + </SubComponents> + </Container> + <Container class="javax.swing.JPanel" name="pnlP12Login"> + <Properties> + <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor"> + <Dimension value="[450, 100]"/> + </Property> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout" value="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout$GridBagConstraintsDescription"> + <GridBagConstraints gridX="0" gridY="1" gridWidth="1" gridHeight="1" fill="0" ipadX="0" ipadY="0" insetsTop="0" insetsLeft="0" insetsBottom="0" insetsRight="0" anchor="10" weightX="0.0" weightY="0.0"/> + </Constraint> + </Constraints> + + <Layout class="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout"/> + <SubComponents> + <Component class="javax.swing.JLabel" name="lblP12Cert"> + <Properties> + <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor"> + <ResourceString bundle="org/irods/jargon/idrop/desktop/gdrop/Bundle.properties" key="GDropLoginDialog.lblP12Cert.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/> + </Property> + <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor"> + <Dimension value="[105, 25]"/> + </Property> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout" value="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout$GridBagConstraintsDescription"> + <GridBagConstraints gridX="0" gridY="0" gridWidth="1" gridHeight="1" fill="0" ipadX="0" ipadY="0" insetsTop="0" insetsLeft="0" insetsBottom="0" insetsRight="0" anchor="10" weightX="0.0" weightY="0.0"/> + </Constraint> + </Constraints> + </Component> + <Component class="javax.swing.JTextField" name="txtP12Cert"> + <Properties> + <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor"> + <ResourceString bundle="org/irods/jargon/idrop/desktop/gdrop/Bundle.properties" key="GDropLoginDialog.txtP12Cert.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/> + </Property> + <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor"> + <Dimension value="[185, 25]"/> + </Property> + </Properties> + <Events> + <EventHandler event="mousePressed" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="txtP12CertMousePressed"/> + <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="txtP12CertActionPerformed"/> + </Events> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout" value="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout$GridBagConstraintsDescription"> + <GridBagConstraints gridX="-1" gridY="-1" gridWidth="1" gridHeight="1" fill="0" ipadX="0" ipadY="0" insetsTop="0" insetsLeft="0" insetsBottom="0" insetsRight="0" anchor="10" weightX="0.0" weightY="0.0"/> + </Constraint> + </Constraints> + </Component> + <Component class="javax.swing.JLabel" name="lblP12CertPassword"> + <Properties> + <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor"> + <ResourceString bundle="org/irods/jargon/idrop/desktop/gdrop/Bundle.properties" key="GDropLoginDialog.lblP12CertPassword.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/> + </Property> + <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor"> + <Dimension value="[105, 25]"/> + </Property> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout" value="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout$GridBagConstraintsDescription"> + <GridBagConstraints gridX="0" gridY="2" gridWidth="1" gridHeight="1" fill="0" ipadX="0" ipadY="0" insetsTop="0" insetsLeft="0" insetsBottom="0" insetsRight="0" anchor="10" weightX="0.0" weightY="0.0"/> + </Constraint> + </Constraints> + </Component> + <Component class="javax.swing.JPasswordField" name="txtP12CertPassword"> + <Properties> + <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor"> + <ResourceString bundle="org/irods/jargon/idrop/desktop/gdrop/Bundle.properties" key="GDropLoginDialog.txtP12CertPassword.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/> + </Property> + <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor"> + <Dimension value="[185, 25]"/> + </Property> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout" value="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout$GridBagConstraintsDescription"> + <GridBagConstraints gridX="1" gridY="2" gridWidth="1" gridHeight="1" fill="0" ipadX="0" ipadY="0" insetsTop="0" insetsLeft="0" insetsBottom="0" insetsRight="0" anchor="10" weightX="0.0" weightY="0.0"/> + </Constraint> + </Constraints> + </Component> + <Component class="javax.swing.JButton" name="btnChooseP12Cert"> + <Properties> + <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor"> + <ResourceString bundle="org/irods/jargon/idrop/desktop/gdrop/Bundle.properties" key="GDropLoginDialog.btnChooseP12Cert.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/> + </Property> + <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor"> + <Dimension value="[40, 25]"/> + </Property> + </Properties> + <Events> + <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="btnChooseP12CertActionPerformed"/> + </Events> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout" value="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout$GridBagConstraintsDescription"> + <GridBagConstraints gridX="2" gridY="0" gridWidth="1" gridHeight="1" fill="0" ipadX="0" ipadY="0" insetsTop="0" insetsLeft="0" insetsBottom="0" insetsRight="0" anchor="10" weightX="0.0" weightY="0.0"/> + </Constraint> + </Constraints> + </Component> + </SubComponents> + </Container> + <Container class="javax.swing.JPanel" name="pnlKeystoreLogin"> + <Properties> + <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor"> + <Dimension value="[450, 100]"/> + </Property> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout" value="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout$GridBagConstraintsDescription"> + <GridBagConstraints gridX="0" gridY="1" gridWidth="1" gridHeight="1" fill="0" ipadX="0" ipadY="0" insetsTop="0" insetsLeft="0" insetsBottom="0" insetsRight="0" anchor="10" weightX="0.0" weightY="0.0"/> + </Constraint> + </Constraints> + + <Layout class="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout"/> + <SubComponents> + <Component class="javax.swing.JLabel" name="lblKeystoreBrowser"> + <Properties> + <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor"> + <ResourceString bundle="org/irods/jargon/idrop/desktop/gdrop/Bundle.properties" key="GDropLoginDialog.lblKeystoreBrowser.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/> + </Property> + <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor"> + <Dimension value="[150, 25]"/> + </Property> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout" value="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout$GridBagConstraintsDescription"> + <GridBagConstraints gridX="0" gridY="0" gridWidth="1" gridHeight="1" fill="0" ipadX="0" ipadY="0" insetsTop="0" insetsLeft="0" insetsBottom="0" insetsRight="0" anchor="10" weightX="0.0" weightY="0.0"/> + </Constraint> + </Constraints> + </Component> + <Component class="javax.swing.JLabel" name="lblKeystoreCert"> + <Properties> + <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor"> + <ResourceString bundle="org/irods/jargon/idrop/desktop/gdrop/Bundle.properties" key="GDropLoginDialog.lblKeystoreCert.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/> + </Property> + <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor"> + <Dimension value="[150, 25]"/> + </Property> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout" value="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout$GridBagConstraintsDescription"> + <GridBagConstraints gridX="0" gridY="1" gridWidth="1" gridHeight="1" fill="0" ipadX="0" ipadY="0" insetsTop="0" insetsLeft="0" insetsBottom="0" insetsRight="0" anchor="10" weightX="0.0" weightY="0.0"/> + </Constraint> + </Constraints> + </Component> + <Component class="javax.swing.JLabel" name="lblKeystoreCertPassword"> + <Properties> + <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor"> + <ResourceString bundle="org/irods/jargon/idrop/desktop/gdrop/Bundle.properties" key="GDropLoginDialog.lblKeystoreCertPassword.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/> + </Property> + <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor"> + <Dimension value="[150, 25]"/> + </Property> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout" value="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout$GridBagConstraintsDescription"> + <GridBagConstraints gridX="0" gridY="2" gridWidth="1" gridHeight="1" fill="0" ipadX="0" ipadY="0" insetsTop="0" insetsLeft="0" insetsBottom="0" insetsRight="0" anchor="10" weightX="0.0" weightY="0.0"/> + </Constraint> + </Constraints> + </Component> + <Component class="javax.swing.JPasswordField" name="txtKeystoreCertPassword"> + <Properties> + <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor"> + <ResourceString bundle="org/irods/jargon/idrop/desktop/gdrop/Bundle.properties" key="GDropLoginDialog.txtKeystoreCertPassword.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/> + </Property> + <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor"> + <Dimension value="[185, 25]"/> + </Property> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout" value="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout$GridBagConstraintsDescription"> + <GridBagConstraints gridX="1" gridY="2" gridWidth="1" gridHeight="1" fill="0" ipadX="0" ipadY="0" insetsTop="0" insetsLeft="0" insetsBottom="0" insetsRight="0" anchor="10" weightX="0.0" weightY="0.0"/> + </Constraint> + </Constraints> + </Component> + <Component class="javax.swing.JComboBox" name="cbKeystoreBrowser"> + <Properties> + <Property name="model" type="javax.swing.ComboBoxModel" editor="org.netbeans.modules.form.editors2.ComboBoxModelEditor"> + <StringArray count="4"> + <StringItem index="0" value="Item 1"/> + <StringItem index="1" value="Item 2"/> + <StringItem index="2" value="Item 3"/> + <StringItem index="3" value="Item 4"/> + </StringArray> + </Property> + <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor"> + <Dimension value="[180, 25]"/> + </Property> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout" value="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout$GridBagConstraintsDescription"> + <GridBagConstraints gridX="1" gridY="0" gridWidth="1" gridHeight="1" fill="0" ipadX="0" ipadY="0" insetsTop="0" insetsLeft="0" insetsBottom="0" insetsRight="0" anchor="10" weightX="0.0" weightY="0.0"/> + </Constraint> + </Constraints> + </Component> + <Component class="javax.swing.JComboBox" name="cbKeystoreCert"> + <Properties> + <Property name="model" type="javax.swing.ComboBoxModel" editor="org.netbeans.modules.form.editors2.ComboBoxModelEditor"> + <StringArray count="4"> + <StringItem index="0" value="Item 1"/> + <StringItem index="1" value="Item 2"/> + <StringItem index="2" value="Item 3"/> + <StringItem index="3" value="Item 4"/> + </StringArray> + </Property> + <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor"> + <Dimension value="[180, 25]"/> + </Property> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout" value="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout$GridBagConstraintsDescription"> + <GridBagConstraints gridX="1" gridY="1" gridWidth="1" gridHeight="1" fill="0" ipadX="0" ipadY="0" insetsTop="0" insetsLeft="0" insetsBottom="0" insetsRight="0" anchor="10" weightX="0.0" weightY="0.0"/> + </Constraint> + </Constraints> + </Component> + </SubComponents> + </Container> + <Container class="javax.swing.JPanel" name="pnlProxyLogin"> + <Properties> + <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor"> + <Dimension value="[450, 100]"/> + </Property> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout" value="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout$GridBagConstraintsDescription"> + <GridBagConstraints gridX="0" gridY="1" gridWidth="1" gridHeight="1" fill="0" ipadX="0" ipadY="0" insetsTop="0" insetsLeft="0" insetsBottom="0" insetsRight="0" anchor="10" weightX="0.0" weightY="0.0"/> + </Constraint> + </Constraints> + + <Layout class="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout"/> + <SubComponents> + <Component class="javax.swing.JLabel" name="lblProxyCert"> + <Properties> + <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor"> + <ResourceString bundle="org/irods/jargon/idrop/desktop/gdrop/Bundle.properties" key="GDropLoginDialog.lblProxyCert.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/> + </Property> + <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor"> + <Dimension value="[105, 25]"/> + </Property> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout" value="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout$GridBagConstraintsDescription"> + <GridBagConstraints gridX="0" gridY="0" gridWidth="1" gridHeight="1" fill="0" ipadX="0" ipadY="0" insetsTop="0" insetsLeft="0" insetsBottom="0" insetsRight="0" anchor="10" weightX="0.0" weightY="0.0"/> + </Constraint> + </Constraints> + </Component> + <Component class="javax.swing.JTextField" name="txtProxyCert"> + <Properties> + <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor"> + <ResourceString bundle="org/irods/jargon/idrop/desktop/gdrop/Bundle.properties" key="GDropLoginDialog.txtProxyCert.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/> + </Property> + <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor"> + <Dimension value="[185, 25]"/> + </Property> + </Properties> + <Events> + <EventHandler event="mousePressed" listener="java.awt.event.MouseListener" parameters="java.awt.event.MouseEvent" handler="txtProxyCertMousePressed"/> + <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="txtProxyCertActionPerformed"/> + </Events> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout" value="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout$GridBagConstraintsDescription"> + <GridBagConstraints gridX="-1" gridY="-1" gridWidth="1" gridHeight="1" fill="0" ipadX="0" ipadY="0" insetsTop="0" insetsLeft="0" insetsBottom="0" insetsRight="0" anchor="10" weightX="0.0" weightY="0.0"/> + </Constraint> + </Constraints> + </Component> + <Component class="javax.swing.JButton" name="btnChooseProxyCert"> + <Properties> + <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor"> + <ResourceString bundle="org/irods/jargon/idrop/desktop/gdrop/Bundle.properties" key="GDropLoginDialog.btnChooseProxyCert.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/> + </Property> + <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor"> + <Dimension value="[40, 25]"/> + </Property> + </Properties> + <Events> + <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="btnChooseProxyCertActionPerformed"/> + </Events> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout" value="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout$GridBagConstraintsDescription"> + <GridBagConstraints gridX="2" gridY="0" gridWidth="1" gridHeight="1" fill="0" ipadX="0" ipadY="0" insetsTop="0" insetsLeft="0" insetsBottom="0" insetsRight="0" anchor="10" weightX="0.0" weightY="0.0"/> + </Constraint> + </Constraints> + </Component> + </SubComponents> + </Container> + <Container class="javax.swing.JPanel" name="pnlKeyFSLogin"> + <Properties> + <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor"> + <Dimension value="[450, 100]"/> + </Property> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout" value="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout$GridBagConstraintsDescription"> + <GridBagConstraints gridX="0" gridY="1" gridWidth="1" gridHeight="1" fill="0" ipadX="0" ipadY="0" insetsTop="0" insetsLeft="0" insetsBottom="0" insetsRight="0" anchor="10" weightX="0.0" weightY="0.0"/> + </Constraint> + </Constraints> + + <Layout class="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout"/> + <SubComponents> + <Component class="javax.swing.JLabel" name="lblPlgridUsername"> + <Properties> + <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor"> + <ResourceString bundle="org/irods/jargon/idrop/desktop/gdrop/Bundle.properties" key="GDropLoginDialog.lblPlgridUsername.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/> + </Property> + <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor"> + <Dimension value="[150, 25]"/> + </Property> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout" value="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout$GridBagConstraintsDescription"> + <GridBagConstraints gridX="0" gridY="6" gridWidth="1" gridHeight="1" fill="0" ipadX="0" ipadY="0" insetsTop="0" insetsLeft="0" insetsBottom="0" insetsRight="0" anchor="10" weightX="0.0" weightY="0.0"/> + </Constraint> + </Constraints> + </Component> + <Component class="javax.swing.JTextField" name="txtplgridUsername"> + <Properties> + <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor"> + <ResourceString bundle="org/irods/jargon/idrop/desktop/gdrop/Bundle.properties" key="GDropLoginDialog.txtplgridUsername.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/> + </Property> + <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor"> + <Dimension value="[180, 25]"/> + </Property> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout" value="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout$GridBagConstraintsDescription"> + <GridBagConstraints gridX="1" gridY="6" gridWidth="1" gridHeight="1" fill="0" ipadX="0" ipadY="0" insetsTop="0" insetsLeft="0" insetsBottom="0" insetsRight="0" anchor="10" weightX="0.0" weightY="0.0"/> + </Constraint> + </Constraints> + </Component> + <Component class="javax.swing.JLabel" name="lblPlgridPassword"> + <Properties> + <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor"> + <ResourceString bundle="org/irods/jargon/idrop/desktop/gdrop/Bundle.properties" key="GDropLoginDialog.lblPlgridPassword.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/> + </Property> + <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor"> + <Dimension value="[150, 25]"/> + </Property> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout" value="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout$GridBagConstraintsDescription"> + <GridBagConstraints gridX="0" gridY="7" gridWidth="1" gridHeight="1" fill="0" ipadX="0" ipadY="0" insetsTop="0" insetsLeft="0" insetsBottom="0" insetsRight="0" anchor="10" weightX="0.0" weightY="0.0"/> + </Constraint> + </Constraints> + </Component> + <Component class="javax.swing.JPasswordField" name="txtPlgridPassword"> + <Properties> + <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor"> + <ResourceString bundle="org/irods/jargon/idrop/desktop/gdrop/Bundle.properties" key="GDropLoginDialog.txtPlgridPassword.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/> + </Property> + <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor"> + <Dimension value="[180, 25]"/> + </Property> + </Properties> + <Events> + <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="txtPlgridPasswordActionPerformed"/> + </Events> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout" value="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout$GridBagConstraintsDescription"> + <GridBagConstraints gridX="1" gridY="7" gridWidth="1" gridHeight="1" fill="0" ipadX="0" ipadY="0" insetsTop="0" insetsLeft="0" insetsBottom="0" insetsRight="0" anchor="10" weightX="0.0" weightY="0.0"/> + </Constraint> + </Constraints> + </Component> + <Component class="javax.swing.JLabel" name="lblKeyPassword"> + <Properties> + <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor"> + <ResourceString bundle="org/irods/jargon/idrop/desktop/gdrop/Bundle.properties" key="GDropLoginDialog.lblKeyPassword.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/> + </Property> + <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor"> + <Dimension value="[150, 25]"/> + </Property> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout" value="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout$GridBagConstraintsDescription"> + <GridBagConstraints gridX="0" gridY="8" gridWidth="1" gridHeight="1" fill="0" ipadX="0" ipadY="0" insetsTop="0" insetsLeft="0" insetsBottom="0" insetsRight="0" anchor="10" weightX="0.0" weightY="0.0"/> + </Constraint> + </Constraints> + </Component> + <Component class="javax.swing.JPasswordField" name="txtKeyPassword"> + <Properties> + <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor"> + <ResourceString bundle="org/irods/jargon/idrop/desktop/gdrop/Bundle.properties" key="GDropLoginDialog.txtKeyPassword.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/> + </Property> + <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor"> + <Dimension value="[180, 25]"/> + </Property> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout" value="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout$GridBagConstraintsDescription"> + <GridBagConstraints gridX="1" gridY="8" gridWidth="1" gridHeight="1" fill="0" ipadX="0" ipadY="0" insetsTop="0" insetsLeft="0" insetsBottom="0" insetsRight="0" anchor="10" weightX="0.0" weightY="0.0"/> + </Constraint> + </Constraints> + </Component> + </SubComponents> + </Container> + <Container class="javax.swing.JPanel" name="pnlButtons"> + <Properties> + <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor"> + <Dimension value="[200, 60]"/> + </Property> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout" value="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout$GridBagConstraintsDescription"> + <GridBagConstraints gridX="0" gridY="2" gridWidth="1" gridHeight="1" fill="0" ipadX="0" ipadY="0" insetsTop="0" insetsLeft="0" insetsBottom="0" insetsRight="0" anchor="13" weightX="0.0" weightY="0.0"/> + </Constraint> + </Constraints> + + <Layout class="org.netbeans.modules.form.compat2.layouts.DesignFlowLayout"/> + <SubComponents> + <Component class="javax.swing.JButton" name="btnCancel"> + <Properties> + <Property name="icon" type="javax.swing.Icon" editor="org.netbeans.modules.form.editors2.IconEditor"> + <Image iconType="3" name="/org/irods/jargon/idrop/desktop/systraygui/images/glyphicons_192_circle_remove.png"/> + </Property> + <Property name="mnemonic" type="int" value="67"/> + <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor"> + <ResourceString bundle="org/irods/jargon/idrop/desktop/gdrop/Bundle.properties" key="GDropLoginDialog.btnCancel.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/> + </Property> + <Property name="toolTipText" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor"> + <ResourceString bundle="org/irods/jargon/idrop/desktop/gdrop/Bundle.properties" key="GDropLoginDialog.btnCancel.toolTipText_1" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/> + </Property> + </Properties> + <Events> + <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="btnCancelActionPerformed"/> + </Events> + </Component> + <Component class="javax.swing.JButton" name="btnOK"> + <Properties> + <Property name="icon" type="javax.swing.Icon" editor="org.netbeans.modules.form.editors2.IconEditor"> + <Image iconType="3" name="/org/irods/jargon/idrop/desktop/systraygui/images/glyphicons_193_circle_ok.png"/> + </Property> + <Property name="mnemonic" type="int" value="79"/> + <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor"> + <ResourceString bundle="org/irods/jargon/idrop/desktop/gdrop/Bundle.properties" key="GDropLoginDialog.btnOK.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/> + </Property> + <Property name="toolTipText" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor"> + <ResourceString bundle="org/irods/jargon/idrop/desktop/gdrop/Bundle.properties" key="GDropLoginDialog.btnOK.toolTipText_1" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/> + </Property> + </Properties> + <Events> + <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="btnOKActionPerformed"/> + </Events> + </Component> + </SubComponents> + </Container> + </SubComponents> +</Form> diff --git a/idrop-swing/src/main/java/org/irods/jargon/idrop/desktop/gdrop/GDropLoginDialog.java b/idrop-swing/src/main/java/org/irods/jargon/idrop/desktop/gdrop/GDropLoginDialog.java new file mode 100644 index 0000000..b0707a5 --- /dev/null +++ b/idrop-swing/src/main/java/org/irods/jargon/idrop/desktop/gdrop/GDropLoginDialog.java @@ -0,0 +1,1281 @@ +/* + * To change this template, choose Tools | Templates + * and open the template in the editor. + */ +package org.irods.jargon.idrop.desktop.gdrop; + +import java.io.File; +import java.util.logging.Level; +import java.util.logging.Logger; +import javax.swing.DefaultComboBoxModel; +import javax.swing.JFileChooser; +import javax.swing.JOptionPane; +import javax.swing.JTextField; +import org.irods.jargon.conveyor.core.ConveyorExecutionException; +import org.irods.jargon.conveyor.core.GridAccountService; +import org.irods.jargon.core.connection.IRODSAccount; +import org.irods.jargon.core.exception.JargonException; +import static org.irods.jargon.idrop.desktop.gdrop.GDropAuthScheme.KEYFS; +import static org.irods.jargon.idrop.desktop.gdrop.GDropAuthScheme.KEYSTORE; +import static org.irods.jargon.idrop.desktop.gdrop.GDropAuthScheme.P12; +import static org.irods.jargon.idrop.desktop.gdrop.GDropAuthScheme.PEM; +import static org.irods.jargon.idrop.desktop.gdrop.GDropAuthScheme.PROXY; +import static org.irods.jargon.idrop.desktop.gdrop.GDropAuthScheme.STANDARD; +import org.irods.jargon.idrop.desktop.systraygui.IDROPCore; +import org.irods.jargon.transfer.exception.PassPhraseInvalidException; + +/** + * + * @author gosiaw + */ +public class GDropLoginDialog extends javax.swing.JDialog { + + private GDropGridAccount gridAccount; + private final IDROPCore idropCore; + private static final int STANDARD = 0; + private static final int PEM = 1; + private static final int P12 = 2; + private static final int KEYSTORE = 3; + private static final int PROXY = 4; + private static final int KEYFS = 5; + + /** + * Creates new form GDropLoginDialog + */ + public GDropLoginDialog(java.awt.Frame parent, boolean modal, final IDROPCore idropCore, + final GDropGridAccount gridAccount) { + super(parent, modal); + initComponents(); + this.idropCore = idropCore; + this.gridAccount = gridAccount; + + populateGridAccountInfo(gridAccount.getGDropAuthScheme()); + initAuthSchemesCombo(gridAccount.getGDropAuthScheme()); + this.getRootPane().setDefaultButton(btnOK); + + applyMode(GDropAuthScheme.STANDARD); + } + + /** + * This method is called from within the constructor to initialize the form. + * WARNING: Do NOT modify this code. The content of this method is always + * regenerated by the Form Editor. + */ + @SuppressWarnings("unchecked") + // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents + private void initComponents() { + java.awt.GridBagConstraints gridBagConstraints; + + jFileChooser1 = new javax.swing.JFileChooser(); + pnlBasicLoginParameters = new javax.swing.JPanel(); + lblHost = new javax.swing.JLabel(); + lblHostAddress = new javax.swing.JLabel(); + lblPort = new javax.swing.JLabel(); + txtPort = new javax.swing.JTextField(); + lblZone = new javax.swing.JLabel(); + lblZoneValue = new javax.swing.JLabel(); + lblUsername = new javax.swing.JLabel(); + txtUsername = new javax.swing.JTextField(); + lblAuthScheme = new javax.swing.JLabel(); + cbAuthScheme = new javax.swing.JComboBox(); + lblDefaultResource = new javax.swing.JLabel(); + txtDefaultResource = new javax.swing.JTextField(); + lblStartingCollection = new javax.swing.JLabel(); + txtInitialPath = new javax.swing.JTextField(); + lblComment = new javax.swing.JLabel(); + jScrollPane = new javax.swing.JScrollPane(); + txtComment = new javax.swing.JTextField(); + pnlStandardLogin = new javax.swing.JPanel(); + lblPassword = new javax.swing.JLabel(); + txtPassword = new javax.swing.JPasswordField(); + lblVerifyPassword = new javax.swing.JLabel(); + txtVerifyPassword = new javax.swing.JPasswordField(); + pnlPEMLogin = new javax.swing.JPanel(); + lblPEMCert = new javax.swing.JLabel(); + txtPEMCert = new javax.swing.JTextField(); + lblPEMKey = new javax.swing.JLabel(); + txtPEMKey = new javax.swing.JTextField(); + lblPEMCertPassword = new javax.swing.JLabel(); + txtPEMCertPassword = new javax.swing.JPasswordField(); + btnChoosePEMCert = new javax.swing.JButton(); + btnChoosePEMKey = new javax.swing.JButton(); + pnlP12Login = new javax.swing.JPanel(); + lblP12Cert = new javax.swing.JLabel(); + txtP12Cert = new javax.swing.JTextField(); + lblP12CertPassword = new javax.swing.JLabel(); + txtP12CertPassword = new javax.swing.JPasswordField(); + btnChooseP12Cert = new javax.swing.JButton(); + pnlKeystoreLogin = new javax.swing.JPanel(); + lblKeystoreBrowser = new javax.swing.JLabel(); + lblKeystoreCert = new javax.swing.JLabel(); + lblKeystoreCertPassword = new javax.swing.JLabel(); + txtKeystoreCertPassword = new javax.swing.JPasswordField(); + cbKeystoreBrowser = new javax.swing.JComboBox(); + cbKeystoreCert = new javax.swing.JComboBox(); + pnlProxyLogin = new javax.swing.JPanel(); + lblProxyCert = new javax.swing.JLabel(); + txtProxyCert = new javax.swing.JTextField(); + btnChooseProxyCert = new javax.swing.JButton(); + pnlKeyFSLogin = new javax.swing.JPanel(); + lblPlgridUsername = new javax.swing.JLabel(); + txtplgridUsername = new javax.swing.JTextField(); + lblPlgridPassword = new javax.swing.JLabel(); + txtPlgridPassword = new javax.swing.JPasswordField(); + lblKeyPassword = new javax.swing.JLabel(); + txtKeyPassword = new javax.swing.JPasswordField(); + pnlButtons = new javax.swing.JPanel(); + btnCancel = new javax.swing.JButton(); + btnOK = new javax.swing.JButton(); + + setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE); + getContentPane().setLayout(new java.awt.GridBagLayout()); + + pnlBasicLoginParameters.setPreferredSize(new java.awt.Dimension(450, 250)); + pnlBasicLoginParameters.setLayout(new java.awt.GridBagLayout()); + + lblHost.setText(org.openide.util.NbBundle.getMessage(GDropLoginDialog.class, "GDropLoginDialog.lblHost.text")); // NOI18N + lblHost.setHorizontalTextPosition(javax.swing.SwingConstants.RIGHT); + lblHost.setPreferredSize(new java.awt.Dimension(150, 25)); + gridBagConstraints = new java.awt.GridBagConstraints(); + gridBagConstraints.gridx = 0; + gridBagConstraints.gridy = 0; + pnlBasicLoginParameters.add(lblHost, gridBagConstraints); + + lblHostAddress.setText(org.openide.util.NbBundle.getMessage(GDropLoginDialog.class, "GDropLoginDialog.lblHostAddress.text")); // NOI18N + lblHostAddress.setPreferredSize(new java.awt.Dimension(180, 25)); + gridBagConstraints = new java.awt.GridBagConstraints(); + gridBagConstraints.gridx = 1; + gridBagConstraints.gridy = 0; + pnlBasicLoginParameters.add(lblHostAddress, gridBagConstraints); + + lblPort.setText(org.openide.util.NbBundle.getMessage(GDropLoginDialog.class, "GDropLoginDialog.lblPort.text")); // NOI18N + lblPort.setHorizontalTextPosition(javax.swing.SwingConstants.RIGHT); + lblPort.setPreferredSize(new java.awt.Dimension(150, 25)); + gridBagConstraints = new java.awt.GridBagConstraints(); + gridBagConstraints.gridx = 0; + gridBagConstraints.gridy = 1; + pnlBasicLoginParameters.add(lblPort, gridBagConstraints); + + txtPort.setText(org.openide.util.NbBundle.getMessage(GDropLoginDialog.class, "GDropLoginDialog.txtPort.text")); // NOI18N + txtPort.setPreferredSize(new java.awt.Dimension(180, 25)); + gridBagConstraints = new java.awt.GridBagConstraints(); + gridBagConstraints.gridx = 1; + gridBagConstraints.gridy = 1; + pnlBasicLoginParameters.add(txtPort, gridBagConstraints); + + lblZone.setText(org.openide.util.NbBundle.getMessage(GDropLoginDialog.class, "GDropLoginDialog.lblZone.text")); // NOI18N + lblZone.setHorizontalTextPosition(javax.swing.SwingConstants.RIGHT); + lblZone.setPreferredSize(new java.awt.Dimension(150, 25)); + gridBagConstraints = new java.awt.GridBagConstraints(); + gridBagConstraints.gridx = 0; + gridBagConstraints.gridy = 2; + pnlBasicLoginParameters.add(lblZone, gridBagConstraints); + + lblZoneValue.setText(org.openide.util.NbBundle.getMessage(GDropLoginDialog.class, "GDropLoginDialog.lblZoneValue.text")); // NOI18N + lblZoneValue.setPreferredSize(new java.awt.Dimension(180, 25)); + gridBagConstraints = new java.awt.GridBagConstraints(); + gridBagConstraints.gridx = 1; + gridBagConstraints.gridy = 2; + pnlBasicLoginParameters.add(lblZoneValue, gridBagConstraints); + + lblUsername.setText(org.openide.util.NbBundle.getMessage(GDropLoginDialog.class, "GDropLoginDialog.lblUsername.text")); // NOI18N + lblUsername.setHorizontalTextPosition(javax.swing.SwingConstants.RIGHT); + lblUsername.setPreferredSize(new java.awt.Dimension(150, 25)); + gridBagConstraints = new java.awt.GridBagConstraints(); + gridBagConstraints.gridx = 0; + gridBagConstraints.gridy = 3; + pnlBasicLoginParameters.add(lblUsername, gridBagConstraints); + + txtUsername.setText(org.openide.util.NbBundle.getMessage(GDropLoginDialog.class, "GDropLoginDialog.txtUsername.text")); // NOI18N + txtUsername.setPreferredSize(new java.awt.Dimension(180, 25)); + gridBagConstraints = new java.awt.GridBagConstraints(); + gridBagConstraints.gridx = 1; + gridBagConstraints.gridy = 3; + pnlBasicLoginParameters.add(txtUsername, gridBagConstraints); + + lblAuthScheme.setText(org.openide.util.NbBundle.getMessage(GDropLoginDialog.class, "GDropLoginDialog.lblAuthScheme.text")); // NOI18N + lblAuthScheme.setHorizontalTextPosition(javax.swing.SwingConstants.RIGHT); + lblAuthScheme.setPreferredSize(new java.awt.Dimension(150, 25)); + gridBagConstraints = new java.awt.GridBagConstraints(); + gridBagConstraints.gridx = 0; + gridBagConstraints.gridy = 6; + pnlBasicLoginParameters.add(lblAuthScheme, gridBagConstraints); + + cbAuthScheme.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" })); + cbAuthScheme.setPreferredSize(new java.awt.Dimension(180, 25)); + cbAuthScheme.addActionListener(new java.awt.event.ActionListener() { + public void actionPerformed(java.awt.event.ActionEvent evt) { + cbAuthSchemeActionPerformed(evt); + } + }); + gridBagConstraints = new java.awt.GridBagConstraints(); + gridBagConstraints.gridx = 1; + gridBagConstraints.gridy = 6; + pnlBasicLoginParameters.add(cbAuthScheme, gridBagConstraints); + + lblDefaultResource.setText(org.openide.util.NbBundle.getMessage(GDropLoginDialog.class, "GDropLoginDialog.lblDefaultResource.text")); // NOI18N + lblDefaultResource.setHorizontalTextPosition(javax.swing.SwingConstants.RIGHT); + lblDefaultResource.setPreferredSize(new java.awt.Dimension(150, 25)); + gridBagConstraints = new java.awt.GridBagConstraints(); + gridBagConstraints.gridx = 0; + gridBagConstraints.gridy = 7; + pnlBasicLoginParameters.add(lblDefaultResource, gridBagConstraints); + + txtDefaultResource.setText(org.openide.util.NbBundle.getMessage(GDropLoginDialog.class, "GDropLoginDialog.txtDefaultResource.text")); // NOI18N + txtDefaultResource.setPreferredSize(new java.awt.Dimension(180, 25)); + txtDefaultResource.addActionListener(new java.awt.event.ActionListener() { + public void actionPerformed(java.awt.event.ActionEvent evt) { + txtDefaultResourceActionPerformed(evt); + } + }); + gridBagConstraints = new java.awt.GridBagConstraints(); + gridBagConstraints.gridx = 1; + gridBagConstraints.gridy = 7; + pnlBasicLoginParameters.add(txtDefaultResource, gridBagConstraints); + + lblStartingCollection.setText(org.openide.util.NbBundle.getMessage(GDropLoginDialog.class, "GDropLoginDialog.lblStartingCollection.text")); // NOI18N + lblStartingCollection.setHorizontalTextPosition(javax.swing.SwingConstants.RIGHT); + lblStartingCollection.setPreferredSize(new java.awt.Dimension(150, 25)); + gridBagConstraints = new java.awt.GridBagConstraints(); + gridBagConstraints.gridx = 0; + gridBagConstraints.gridy = 8; + pnlBasicLoginParameters.add(lblStartingCollection, gridBagConstraints); + + txtInitialPath.setText(org.openide.util.NbBundle.getMessage(GDropLoginDialog.class, "GDropLoginDialog.txtInitialPath.text")); // NOI18N + txtInitialPath.setPreferredSize(new java.awt.Dimension(180, 25)); + txtInitialPath.addActionListener(new java.awt.event.ActionListener() { + public void actionPerformed(java.awt.event.ActionEvent evt) { + txtInitialPathActionPerformed(evt); + } + }); + gridBagConstraints = new java.awt.GridBagConstraints(); + gridBagConstraints.gridx = 1; + gridBagConstraints.gridy = 8; + pnlBasicLoginParameters.add(txtInitialPath, gridBagConstraints); + + lblComment.setText(org.openide.util.NbBundle.getMessage(GDropLoginDialog.class, "GDropLoginDialog.lblComment.text")); // NOI18N + lblComment.setHorizontalTextPosition(javax.swing.SwingConstants.RIGHT); + lblComment.setPreferredSize(new java.awt.Dimension(150, 25)); + gridBagConstraints = new java.awt.GridBagConstraints(); + gridBagConstraints.gridx = 0; + gridBagConstraints.gridy = 9; + pnlBasicLoginParameters.add(lblComment, gridBagConstraints); + + jScrollPane.setPreferredSize(new java.awt.Dimension(180, 60)); + + txtComment.setText(org.openide.util.NbBundle.getMessage(GDropLoginDialog.class, "GDropLoginDialog.txtComment.text")); // NOI18N + txtComment.setPreferredSize(new java.awt.Dimension(180, 25)); + jScrollPane.setViewportView(txtComment); + + gridBagConstraints = new java.awt.GridBagConstraints(); + gridBagConstraints.gridx = 1; + gridBagConstraints.gridy = 9; + gridBagConstraints.gridheight = 3; + pnlBasicLoginParameters.add(jScrollPane, gridBagConstraints); + + gridBagConstraints = new java.awt.GridBagConstraints(); + gridBagConstraints.gridx = 0; + gridBagConstraints.gridy = 0; + getContentPane().add(pnlBasicLoginParameters, gridBagConstraints); + + pnlStandardLogin.setPreferredSize(new java.awt.Dimension(450, 100)); + pnlStandardLogin.setLayout(new java.awt.GridBagLayout()); + + lblPassword.setText(org.openide.util.NbBundle.getMessage(GDropLoginDialog.class, "GDropLoginDialog.lblPassword.text")); // NOI18N + lblPassword.setHorizontalTextPosition(javax.swing.SwingConstants.RIGHT); + lblPassword.setPreferredSize(new java.awt.Dimension(150, 25)); + gridBagConstraints = new java.awt.GridBagConstraints(); + gridBagConstraints.gridx = 0; + gridBagConstraints.gridy = 4; + pnlStandardLogin.add(lblPassword, gridBagConstraints); + + txtPassword.setText(org.openide.util.NbBundle.getMessage(GDropLoginDialog.class, "GDropLoginDialog.txtPassword.text")); // NOI18N + txtPassword.setPreferredSize(new java.awt.Dimension(180, 25)); + txtPassword.addActionListener(new java.awt.event.ActionListener() { + public void actionPerformed(java.awt.event.ActionEvent evt) { + txtPasswordActionPerformed(evt); + } + }); + gridBagConstraints = new java.awt.GridBagConstraints(); + gridBagConstraints.gridx = 1; + gridBagConstraints.gridy = 4; + pnlStandardLogin.add(txtPassword, gridBagConstraints); + + lblVerifyPassword.setText(org.openide.util.NbBundle.getMessage(GDropLoginDialog.class, "GDropLoginDialog.lblVerifyPassword.text")); // NOI18N + lblVerifyPassword.setHorizontalTextPosition(javax.swing.SwingConstants.RIGHT); + lblVerifyPassword.setPreferredSize(new java.awt.Dimension(150, 25)); + gridBagConstraints = new java.awt.GridBagConstraints(); + gridBagConstraints.gridx = 0; + gridBagConstraints.gridy = 5; + pnlStandardLogin.add(lblVerifyPassword, gridBagConstraints); + + txtVerifyPassword.setText(org.openide.util.NbBundle.getMessage(GDropLoginDialog.class, "GDropLoginDialog.txtVerifyPassword.text")); // NOI18N + txtVerifyPassword.setPreferredSize(new java.awt.Dimension(180, 25)); + gridBagConstraints = new java.awt.GridBagConstraints(); + gridBagConstraints.gridx = 1; + gridBagConstraints.gridy = 5; + pnlStandardLogin.add(txtVerifyPassword, gridBagConstraints); + + gridBagConstraints = new java.awt.GridBagConstraints(); + gridBagConstraints.gridx = 0; + gridBagConstraints.gridy = 1; + getContentPane().add(pnlStandardLogin, gridBagConstraints); + + pnlPEMLogin.setPreferredSize(new java.awt.Dimension(450, 100)); + pnlPEMLogin.setLayout(new java.awt.GridBagLayout()); + + lblPEMCert.setText(org.openide.util.NbBundle.getMessage(GDropLoginDialog.class, "GDropLoginDialog.lblPEMCert.text")); // NOI18N + lblPEMCert.setPreferredSize(new java.awt.Dimension(105, 25)); + gridBagConstraints = new java.awt.GridBagConstraints(); + gridBagConstraints.gridx = 0; + gridBagConstraints.gridy = 0; + pnlPEMLogin.add(lblPEMCert, gridBagConstraints); + + txtPEMCert.setText(org.openide.util.NbBundle.getMessage(GDropLoginDialog.class, "GDropLoginDialog.txtPEMCert.text")); // NOI18N + txtPEMCert.setPreferredSize(new java.awt.Dimension(185, 25)); + txtPEMCert.addMouseListener(new java.awt.event.MouseAdapter() { + public void mousePressed(java.awt.event.MouseEvent evt) { + txtPEMCertMousePressed(evt); + } + }); + txtPEMCert.addActionListener(new java.awt.event.ActionListener() { + public void actionPerformed(java.awt.event.ActionEvent evt) { + txtPEMCertActionPerformed(evt); + } + }); + pnlPEMLogin.add(txtPEMCert, new java.awt.GridBagConstraints()); + + lblPEMKey.setText(org.openide.util.NbBundle.getMessage(GDropLoginDialog.class, "GDropLoginDialog.lblPEMKey.text")); // NOI18N + lblPEMKey.setPreferredSize(new java.awt.Dimension(105, 25)); + gridBagConstraints = new java.awt.GridBagConstraints(); + gridBagConstraints.gridx = 0; + gridBagConstraints.gridy = 1; + pnlPEMLogin.add(lblPEMKey, gridBagConstraints); + + txtPEMKey.setText(org.openide.util.NbBundle.getMessage(GDropLoginDialog.class, "GDropLoginDialog.txtPEMKey.text")); // NOI18N + txtPEMKey.setPreferredSize(new java.awt.Dimension(185, 25)); + gridBagConstraints = new java.awt.GridBagConstraints(); + gridBagConstraints.gridx = 1; + gridBagConstraints.gridy = 1; + pnlPEMLogin.add(txtPEMKey, gridBagConstraints); + + lblPEMCertPassword.setText(org.openide.util.NbBundle.getMessage(GDropLoginDialog.class, "GDropLoginDialog.lblPEMCertPassword.text")); // NOI18N + lblPEMCertPassword.setPreferredSize(new java.awt.Dimension(105, 25)); + gridBagConstraints = new java.awt.GridBagConstraints(); + gridBagConstraints.gridx = 0; + gridBagConstraints.gridy = 2; + pnlPEMLogin.add(lblPEMCertPassword, gridBagConstraints); + + txtPEMCertPassword.setText(org.openide.util.NbBundle.getMessage(GDropLoginDialog.class, "GDropLoginDialog.txtPEMCertPassword.text")); // NOI18N + txtPEMCertPassword.setPreferredSize(new java.awt.Dimension(185, 25)); + gridBagConstraints = new java.awt.GridBagConstraints(); + gridBagConstraints.gridx = 1; + gridBagConstraints.gridy = 2; + pnlPEMLogin.add(txtPEMCertPassword, gridBagConstraints); + + btnChoosePEMCert.setText(org.openide.util.NbBundle.getMessage(GDropLoginDialog.class, "GDropLoginDialog.btnChoosePEMCert.text")); // NOI18N + btnChoosePEMCert.setPreferredSize(new java.awt.Dimension(40, 25)); + btnChoosePEMCert.addActionListener(new java.awt.event.ActionListener() { + public void actionPerformed(java.awt.event.ActionEvent evt) { + btnChoosePEMCertActionPerformed(evt); + } + }); + gridBagConstraints = new java.awt.GridBagConstraints(); + gridBagConstraints.gridx = 2; + gridBagConstraints.gridy = 0; + pnlPEMLogin.add(btnChoosePEMCert, gridBagConstraints); + + btnChoosePEMKey.setText(org.openide.util.NbBundle.getMessage(GDropLoginDialog.class, "GDropLoginDialog.btnChoosePEMKey.text")); // NOI18N + btnChoosePEMKey.setPreferredSize(new java.awt.Dimension(40, 25)); + btnChoosePEMKey.addActionListener(new java.awt.event.ActionListener() { + public void actionPerformed(java.awt.event.ActionEvent evt) { + btnChoosePEMKeyActionPerformed(evt); + } + }); + gridBagConstraints = new java.awt.GridBagConstraints(); + gridBagConstraints.gridx = 2; + gridBagConstraints.gridy = 1; + pnlPEMLogin.add(btnChoosePEMKey, gridBagConstraints); + + gridBagConstraints = new java.awt.GridBagConstraints(); + gridBagConstraints.gridx = 0; + gridBagConstraints.gridy = 1; + getContentPane().add(pnlPEMLogin, gridBagConstraints); + + pnlP12Login.setPreferredSize(new java.awt.Dimension(450, 100)); + pnlP12Login.setLayout(new java.awt.GridBagLayout()); + + lblP12Cert.setText(org.openide.util.NbBundle.getMessage(GDropLoginDialog.class, "GDropLoginDialog.lblP12Cert.text")); // NOI18N + lblP12Cert.setPreferredSize(new java.awt.Dimension(105, 25)); + gridBagConstraints = new java.awt.GridBagConstraints(); + gridBagConstraints.gridx = 0; + gridBagConstraints.gridy = 0; + pnlP12Login.add(lblP12Cert, gridBagConstraints); + + txtP12Cert.setText(org.openide.util.NbBundle.getMessage(GDropLoginDialog.class, "GDropLoginDialog.txtP12Cert.text")); // NOI18N + txtP12Cert.setPreferredSize(new java.awt.Dimension(185, 25)); + txtP12Cert.addMouseListener(new java.awt.event.MouseAdapter() { + public void mousePressed(java.awt.event.MouseEvent evt) { + txtP12CertMousePressed(evt); + } + }); + txtP12Cert.addActionListener(new java.awt.event.ActionListener() { + public void actionPerformed(java.awt.event.ActionEvent evt) { + txtP12CertActionPerformed(evt); + } + }); + pnlP12Login.add(txtP12Cert, new java.awt.GridBagConstraints()); + + lblP12CertPassword.setText(org.openide.util.NbBundle.getMessage(GDropLoginDialog.class, "GDropLoginDialog.lblP12CertPassword.text")); // NOI18N + lblP12CertPassword.setPreferredSize(new java.awt.Dimension(105, 25)); + gridBagConstraints = new java.awt.GridBagConstraints(); + gridBagConstraints.gridx = 0; + gridBagConstraints.gridy = 2; + pnlP12Login.add(lblP12CertPassword, gridBagConstraints); + + txtP12CertPassword.setText(org.openide.util.NbBundle.getMessage(GDropLoginDialog.class, "GDropLoginDialog.txtP12CertPassword.text")); // NOI18N + txtP12CertPassword.setPreferredSize(new java.awt.Dimension(185, 25)); + gridBagConstraints = new java.awt.GridBagConstraints(); + gridBagConstraints.gridx = 1; + gridBagConstraints.gridy = 2; + pnlP12Login.add(txtP12CertPassword, gridBagConstraints); + + btnChooseP12Cert.setText(org.openide.util.NbBundle.getMessage(GDropLoginDialog.class, "GDropLoginDialog.btnChooseP12Cert.text")); // NOI18N + btnChooseP12Cert.setPreferredSize(new java.awt.Dimension(40, 25)); + btnChooseP12Cert.addActionListener(new java.awt.event.ActionListener() { + public void actionPerformed(java.awt.event.ActionEvent evt) { + btnChooseP12CertActionPerformed(evt); + } + }); + gridBagConstraints = new java.awt.GridBagConstraints(); + gridBagConstraints.gridx = 2; + gridBagConstraints.gridy = 0; + pnlP12Login.add(btnChooseP12Cert, gridBagConstraints); + + gridBagConstraints = new java.awt.GridBagConstraints(); + gridBagConstraints.gridx = 0; + gridBagConstraints.gridy = 1; + getContentPane().add(pnlP12Login, gridBagConstraints); + + pnlKeystoreLogin.setPreferredSize(new java.awt.Dimension(450, 100)); + pnlKeystoreLogin.setLayout(new java.awt.GridBagLayout()); + + lblKeystoreBrowser.setText(org.openide.util.NbBundle.getMessage(GDropLoginDialog.class, "GDropLoginDialog.lblKeystoreBrowser.text")); // NOI18N + lblKeystoreBrowser.setPreferredSize(new java.awt.Dimension(150, 25)); + gridBagConstraints = new java.awt.GridBagConstraints(); + gridBagConstraints.gridx = 0; + gridBagConstraints.gridy = 0; + pnlKeystoreLogin.add(lblKeystoreBrowser, gridBagConstraints); + + lblKeystoreCert.setText(org.openide.util.NbBundle.getMessage(GDropLoginDialog.class, "GDropLoginDialog.lblKeystoreCert.text")); // NOI18N + lblKeystoreCert.setPreferredSize(new java.awt.Dimension(150, 25)); + gridBagConstraints = new java.awt.GridBagConstraints(); + gridBagConstraints.gridx = 0; + gridBagConstraints.gridy = 1; + pnlKeystoreLogin.add(lblKeystoreCert, gridBagConstraints); + + lblKeystoreCertPassword.setText(org.openide.util.NbBundle.getMessage(GDropLoginDialog.class, "GDropLoginDialog.lblKeystoreCertPassword.text")); // NOI18N + lblKeystoreCertPassword.setPreferredSize(new java.awt.Dimension(150, 25)); + gridBagConstraints = new java.awt.GridBagConstraints(); + gridBagConstraints.gridx = 0; + gridBagConstraints.gridy = 2; + pnlKeystoreLogin.add(lblKeystoreCertPassword, gridBagConstraints); + + txtKeystoreCertPassword.setText(org.openide.util.NbBundle.getMessage(GDropLoginDialog.class, "GDropLoginDialog.txtKeystoreCertPassword.text")); // NOI18N + txtKeystoreCertPassword.setPreferredSize(new java.awt.Dimension(185, 25)); + gridBagConstraints = new java.awt.GridBagConstraints(); + gridBagConstraints.gridx = 1; + gridBagConstraints.gridy = 2; + pnlKeystoreLogin.add(txtKeystoreCertPassword, gridBagConstraints); + + cbKeystoreBrowser.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" })); + cbKeystoreBrowser.setPreferredSize(new java.awt.Dimension(180, 25)); + gridBagConstraints = new java.awt.GridBagConstraints(); + gridBagConstraints.gridx = 1; + gridBagConstraints.gridy = 0; + pnlKeystoreLogin.add(cbKeystoreBrowser, gridBagConstraints); + + cbKeystoreCert.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" })); + cbKeystoreCert.setPreferredSize(new java.awt.Dimension(180, 25)); + gridBagConstraints = new java.awt.GridBagConstraints(); + gridBagConstraints.gridx = 1; + gridBagConstraints.gridy = 1; + pnlKeystoreLogin.add(cbKeystoreCert, gridBagConstraints); + + gridBagConstraints = new java.awt.GridBagConstraints(); + gridBagConstraints.gridx = 0; + gridBagConstraints.gridy = 1; + getContentPane().add(pnlKeystoreLogin, gridBagConstraints); + + pnlProxyLogin.setPreferredSize(new java.awt.Dimension(450, 100)); + pnlProxyLogin.setLayout(new java.awt.GridBagLayout()); + + lblProxyCert.setText(org.openide.util.NbBundle.getMessage(GDropLoginDialog.class, "GDropLoginDialog.lblProxyCert.text")); // NOI18N + lblProxyCert.setPreferredSize(new java.awt.Dimension(105, 25)); + gridBagConstraints = new java.awt.GridBagConstraints(); + gridBagConstraints.gridx = 0; + gridBagConstraints.gridy = 0; + pnlProxyLogin.add(lblProxyCert, gridBagConstraints); + + txtProxyCert.setText(org.openide.util.NbBundle.getMessage(GDropLoginDialog.class, "GDropLoginDialog.txtProxyCert.text")); // NOI18N + txtProxyCert.setPreferredSize(new java.awt.Dimension(185, 25)); + txtProxyCert.addMouseListener(new java.awt.event.MouseAdapter() { + public void mousePressed(java.awt.event.MouseEvent evt) { + txtProxyCertMousePressed(evt); + } + }); + txtProxyCert.addActionListener(new java.awt.event.ActionListener() { + public void actionPerformed(java.awt.event.ActionEvent evt) { + txtProxyCertActionPerformed(evt); + } + }); + pnlProxyLogin.add(txtProxyCert, new java.awt.GridBagConstraints()); + + btnChooseProxyCert.setText(org.openide.util.NbBundle.getMessage(GDropLoginDialog.class, "GDropLoginDialog.btnChooseProxyCert.text")); // NOI18N + btnChooseProxyCert.setPreferredSize(new java.awt.Dimension(40, 25)); + btnChooseProxyCert.addActionListener(new java.awt.event.ActionListener() { + public void actionPerformed(java.awt.event.ActionEvent evt) { + btnChooseProxyCertActionPerformed(evt); + } + }); + gridBagConstraints = new java.awt.GridBagConstraints(); + gridBagConstraints.gridx = 2; + gridBagConstraints.gridy = 0; + pnlProxyLogin.add(btnChooseProxyCert, gridBagConstraints); + + gridBagConstraints = new java.awt.GridBagConstraints(); + gridBagConstraints.gridx = 0; + gridBagConstraints.gridy = 1; + getContentPane().add(pnlProxyLogin, gridBagConstraints); + + pnlKeyFSLogin.setPreferredSize(new java.awt.Dimension(450, 100)); + pnlKeyFSLogin.setLayout(new java.awt.GridBagLayout()); + + lblPlgridUsername.setText(org.openide.util.NbBundle.getMessage(GDropLoginDialog.class, "GDropLoginDialog.lblPlgridUsername.text")); // NOI18N + lblPlgridUsername.setPreferredSize(new java.awt.Dimension(150, 25)); + gridBagConstraints = new java.awt.GridBagConstraints(); + gridBagConstraints.gridx = 0; + gridBagConstraints.gridy = 6; + pnlKeyFSLogin.add(lblPlgridUsername, gridBagConstraints); + + txtplgridUsername.setText(org.openide.util.NbBundle.getMessage(GDropLoginDialog.class, "GDropLoginDialog.txtplgridUsername.text")); // NOI18N + txtplgridUsername.setPreferredSize(new java.awt.Dimension(180, 25)); + gridBagConstraints = new java.awt.GridBagConstraints(); + gridBagConstraints.gridx = 1; + gridBagConstraints.gridy = 6; + pnlKeyFSLogin.add(txtplgridUsername, gridBagConstraints); + + lblPlgridPassword.setText(org.openide.util.NbBundle.getMessage(GDropLoginDialog.class, "GDropLoginDialog.lblPlgridPassword.text")); // NOI18N + lblPlgridPassword.setPreferredSize(new java.awt.Dimension(150, 25)); + gridBagConstraints = new java.awt.GridBagConstraints(); + gridBagConstraints.gridx = 0; + gridBagConstraints.gridy = 7; + pnlKeyFSLogin.add(lblPlgridPassword, gridBagConstraints); + + txtPlgridPassword.setText(org.openide.util.NbBundle.getMessage(GDropLoginDialog.class, "GDropLoginDialog.txtPlgridPassword.text")); // NOI18N + txtPlgridPassword.setPreferredSize(new java.awt.Dimension(180, 25)); + txtPlgridPassword.addActionListener(new java.awt.event.ActionListener() { + public void actionPerformed(java.awt.event.ActionEvent evt) { + txtPlgridPasswordActionPerformed(evt); + } + }); + gridBagConstraints = new java.awt.GridBagConstraints(); + gridBagConstraints.gridx = 1; + gridBagConstraints.gridy = 7; + pnlKeyFSLogin.add(txtPlgridPassword, gridBagConstraints); + + lblKeyPassword.setText(org.openide.util.NbBundle.getMessage(GDropLoginDialog.class, "GDropLoginDialog.lblKeyPassword.text")); // NOI18N + lblKeyPassword.setPreferredSize(new java.awt.Dimension(150, 25)); + gridBagConstraints = new java.awt.GridBagConstraints(); + gridBagConstraints.gridx = 0; + gridBagConstraints.gridy = 8; + pnlKeyFSLogin.add(lblKeyPassword, gridBagConstraints); + + txtKeyPassword.setText(org.openide.util.NbBundle.getMessage(GDropLoginDialog.class, "GDropLoginDialog.txtKeyPassword.text")); // NOI18N + txtKeyPassword.setPreferredSize(new java.awt.Dimension(180, 25)); + gridBagConstraints = new java.awt.GridBagConstraints(); + gridBagConstraints.gridx = 1; + gridBagConstraints.gridy = 8; + pnlKeyFSLogin.add(txtKeyPassword, gridBagConstraints); + + gridBagConstraints = new java.awt.GridBagConstraints(); + gridBagConstraints.gridx = 0; + gridBagConstraints.gridy = 1; + getContentPane().add(pnlKeyFSLogin, gridBagConstraints); + + pnlButtons.setPreferredSize(new java.awt.Dimension(200, 60)); + + btnCancel.setIcon(new javax.swing.ImageIcon(getClass().getResource("/org/irods/jargon/idrop/desktop/systraygui/images/glyphicons_192_circle_remove.png"))); // NOI18N + btnCancel.setMnemonic('C'); + btnCancel.setText(org.openide.util.NbBundle.getMessage(GDropLoginDialog.class, "GDropLoginDialog.btnCancel.text")); // NOI18N + btnCancel.setToolTipText(org.openide.util.NbBundle.getMessage(GDropLoginDialog.class, "GDropLoginDialog.btnCancel.toolTipText_1")); // NOI18N + btnCancel.addActionListener(new java.awt.event.ActionListener() { + public void actionPerformed(java.awt.event.ActionEvent evt) { + btnCancelActionPerformed(evt); + } + }); + pnlButtons.add(btnCancel); + + btnOK.setIcon(new javax.swing.ImageIcon(getClass().getResource("/org/irods/jargon/idrop/desktop/systraygui/images/glyphicons_193_circle_ok.png"))); // NOI18N + btnOK.setMnemonic('O'); + btnOK.setText(org.openide.util.NbBundle.getMessage(GDropLoginDialog.class, "GDropLoginDialog.btnOK.text")); // NOI18N + btnOK.setToolTipText(org.openide.util.NbBundle.getMessage(GDropLoginDialog.class, "GDropLoginDialog.btnOK.toolTipText_1")); // NOI18N + btnOK.addActionListener(new java.awt.event.ActionListener() { + public void actionPerformed(java.awt.event.ActionEvent evt) { + btnOKActionPerformed(evt); + } + }); + pnlButtons.add(btnOK); + + gridBagConstraints = new java.awt.GridBagConstraints(); + gridBagConstraints.gridx = 0; + gridBagConstraints.gridy = 2; + gridBagConstraints.anchor = java.awt.GridBagConstraints.EAST; + getContentPane().add(pnlButtons, gridBagConstraints); + + pack(); + }// </editor-fold>//GEN-END:initComponents + + private void btnCancelActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnCancelActionPerformed + this.dispose(); + }//GEN-LAST:event_btnCancelActionPerformed + + private void btnOKActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnOKActionPerformed + GDropAuthScheme authScheme = getSelectedAuthScheme(); + + GDropIRODSAccount gridInfo = createIRODSAccountFromForm(authScheme); + if (gridInfo != null) { + GridAccountService gridAccountService = idropCore.getConveyorService().getGridAccountService(); + + // now add authorization scheme to gridaccount + GDropAuthScheme scheme = (GDropAuthScheme) cbAuthScheme.getSelectedItem(); + if ((scheme != null) && (!(scheme.getTextValue().isEmpty()))) { + gridInfo.setGDropAuthenticationScheme(scheme); + } + + // now see if there is a comment to add to gridaccount + String comment = ""; + if ((txtComment.getText() != null) || (!txtComment.getText().isEmpty())) { + comment = txtComment.getText().trim(); + gridInfo.setComment(comment); + } + + try { + gridAccountService.addOrUpdateGridAccountBasedOnIRODSAccount(gridInfo); + + // use this when Mike adds comment to addOrUpdateGridAccountBasedOnIRODSAccount() + // gridAccountService.addOrUpdateGridAccountBasedOnIRODSAccount(gridInfo, comment); + } catch (PassPhraseInvalidException ex) { + gridInfo = null; + Logger.getLogger(GDropOldLoginDialog.class.getName()).log( + Level.SEVERE, null, ex); + JOptionPane.showMessageDialog( + this, + "Update of grid account failed. Pass phrase is invalid.", + "Edit Grid Account", JOptionPane.ERROR_MESSAGE); + } catch (ConveyorExecutionException ex) { + gridInfo = null; + Logger.getLogger(GDropOldLoginDialog.class.getName()).log( + Level.SEVERE, null, ex); + } + this.dispose(); + } + }//GEN-LAST:event_btnOKActionPerformed + + private void txtPasswordActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_txtPasswordActionPerformed + // TODO add your handling code here: + }//GEN-LAST:event_txtPasswordActionPerformed + + private void txtPlgridPasswordActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_txtPlgridPasswordActionPerformed + // TODO add your handling code here: + }//GEN-LAST:event_txtPlgridPasswordActionPerformed + + private void cbAuthSchemeActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_cbAuthSchemeActionPerformed + // TODO add your handling code here: + int index = cbAuthScheme.getSelectedIndex(); + applyMode(index); + }//GEN-LAST:event_cbAuthSchemeActionPerformed + + private void txtDefaultResourceActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_txtDefaultResourceActionPerformed + // TODO add your handling code here: + }//GEN-LAST:event_txtDefaultResourceActionPerformed + + private void txtInitialPathActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_txtInitialPathActionPerformed + // TODO add your handling code here: + }//GEN-LAST:event_txtInitialPathActionPerformed + + private void txtPEMCertActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_txtPEMCertActionPerformed + // TODO add your handling code here: + }//GEN-LAST:event_txtPEMCertActionPerformed + + private void txtPEMCertMousePressed(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_txtPEMCertMousePressed + // TODO add your handling code here: + }//GEN-LAST:event_txtPEMCertMousePressed + + private void btnChoosePEMCertActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnChoosePEMCertActionPerformed + selectFile(txtPEMCert); + }//GEN-LAST:event_btnChoosePEMCertActionPerformed + + private void btnChoosePEMKeyActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnChoosePEMKeyActionPerformed + selectFile(txtPEMKey); + }//GEN-LAST:event_btnChoosePEMKeyActionPerformed + + private void txtP12CertMousePressed(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_txtP12CertMousePressed + // TODO add your handling code here: + }//GEN-LAST:event_txtP12CertMousePressed + + private void txtP12CertActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_txtP12CertActionPerformed + // TODO add your handling code here: + }//GEN-LAST:event_txtP12CertActionPerformed + + private void btnChooseP12CertActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnChooseP12CertActionPerformed + selectFile(txtP12Cert); + }//GEN-LAST:event_btnChooseP12CertActionPerformed + + private void txtProxyCertMousePressed(java.awt.event.MouseEvent evt) {//GEN-FIRST:event_txtProxyCertMousePressed + // TODO add your handling code here: + }//GEN-LAST:event_txtProxyCertMousePressed + + private void txtProxyCertActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_txtProxyCertActionPerformed + // TODO add your handling code here: + }//GEN-LAST:event_txtProxyCertActionPerformed + + private void btnChooseProxyCertActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnChooseProxyCertActionPerformed + selectFile(txtProxyCert); + }//GEN-LAST:event_btnChooseProxyCertActionPerformed + + // Variables declaration - do not modify//GEN-BEGIN:variables + private javax.swing.JButton btnCancel; + private javax.swing.JButton btnChooseP12Cert; + private javax.swing.JButton btnChoosePEMCert; + private javax.swing.JButton btnChoosePEMKey; + private javax.swing.JButton btnChooseProxyCert; + private javax.swing.JButton btnOK; + private javax.swing.JComboBox cbAuthScheme; + private javax.swing.JComboBox cbKeystoreBrowser; + private javax.swing.JComboBox cbKeystoreCert; + private javax.swing.JFileChooser jFileChooser1; + private javax.swing.JScrollPane jScrollPane; + private javax.swing.JLabel lblAuthScheme; + private javax.swing.JLabel lblComment; + private javax.swing.JLabel lblDefaultResource; + private javax.swing.JLabel lblHost; + private javax.swing.JLabel lblHostAddress; + private javax.swing.JLabel lblKeyPassword; + private javax.swing.JLabel lblKeystoreBrowser; + private javax.swing.JLabel lblKeystoreCert; + private javax.swing.JLabel lblKeystoreCertPassword; + private javax.swing.JLabel lblP12Cert; + private javax.swing.JLabel lblP12CertPassword; + private javax.swing.JLabel lblPEMCert; + private javax.swing.JLabel lblPEMCertPassword; + private javax.swing.JLabel lblPEMKey; + private javax.swing.JLabel lblPassword; + private javax.swing.JLabel lblPlgridPassword; + private javax.swing.JLabel lblPlgridUsername; + private javax.swing.JLabel lblPort; + private javax.swing.JLabel lblProxyCert; + private javax.swing.JLabel lblStartingCollection; + private javax.swing.JLabel lblUsername; + private javax.swing.JLabel lblVerifyPassword; + private javax.swing.JLabel lblZone; + private javax.swing.JLabel lblZoneValue; + private javax.swing.JPanel pnlBasicLoginParameters; + private javax.swing.JPanel pnlButtons; + private javax.swing.JPanel pnlKeyFSLogin; + private javax.swing.JPanel pnlKeystoreLogin; + private javax.swing.JPanel pnlP12Login; + private javax.swing.JPanel pnlPEMLogin; + private javax.swing.JPanel pnlProxyLogin; + private javax.swing.JPanel pnlStandardLogin; + private javax.swing.JTextField txtComment; + private javax.swing.JTextField txtDefaultResource; + private javax.swing.JTextField txtInitialPath; + private javax.swing.JPasswordField txtKeyPassword; + private javax.swing.JPasswordField txtKeystoreCertPassword; + private javax.swing.JTextField txtP12Cert; + private javax.swing.JPasswordField txtP12CertPassword; + private javax.swing.JTextField txtPEMCert; + private javax.swing.JPasswordField txtPEMCertPassword; + private javax.swing.JTextField txtPEMKey; + private javax.swing.JPasswordField txtPassword; + private javax.swing.JPasswordField txtPlgridPassword; + private javax.swing.JTextField txtPort; + private javax.swing.JTextField txtProxyCert; + private javax.swing.JTextField txtUsername; + private javax.swing.JPasswordField txtVerifyPassword; + private javax.swing.JTextField txtplgridUsername; + // End of variables declaration//GEN-END:variables + + private void populateGridAccountInfo(int index) { + switch (index) { + case STANDARD: + populateStandardGridAccountInfo(); + break; + case PEM: + break; + case P12: + break; + case KEYSTORE: + break; + case PROXY: + break; + case KEYFS: + populateKeyFSGridAccountInfo(); + break; + } + } + + private void initAuthSchemesCombo(GDropAuthScheme gDropAuthScheme) { + cbAuthScheme.setModel(new DefaultComboBoxModel(GDropAuthScheme.values())); + // also select correct auth scheme for this grid +// cbAuthScheme.setSelectedItem(STANDARD); + cbAuthScheme.setSelectedItem(gDropAuthScheme); + + } + + private GDropIRODSAccount createIRODSAccountFromForm(GDropAuthScheme gdropAuthScheme) { + switch (gdropAuthScheme) { + case STANDARD: + return createIRODSAccountFromStandardForm(); + case PEM: + break; + case P12: + break; + case KEYSTORE: + break; + case PROXY: + break; + case KEYFS: + return createIRODSAccountFromKeyFSForm(); + } + + return null; + } + + private void applyMode(GDropAuthScheme gdropAuthScheme) { + switch (gdropAuthScheme) { + case STANDARD: + cbAuthScheme.setSelectedIndex(STANDARD); + pnlStandardLogin.setVisible(true); + pnlPEMLogin.setVisible(false); + pnlP12Login.setVisible(false); + pnlKeystoreLogin.setVisible(false); + pnlProxyLogin.setVisible(false); + pnlKeyFSLogin.setVisible(false); + break; + case PEM: + cbAuthScheme.setSelectedIndex(PEM); + pnlStandardLogin.setVisible(false); + pnlPEMLogin.setVisible(true); + pnlP12Login.setVisible(false); + pnlKeystoreLogin.setVisible(false); + pnlProxyLogin.setVisible(false); + pnlKeyFSLogin.setVisible(false); + break; + case P12: + cbAuthScheme.setSelectedIndex(P12); + pnlStandardLogin.setVisible(false); + pnlPEMLogin.setVisible(false); + pnlP12Login.setVisible(true); + pnlKeystoreLogin.setVisible(false); + pnlProxyLogin.setVisible(false); + pnlKeyFSLogin.setVisible(false); + break; + case KEYSTORE: + cbAuthScheme.setSelectedIndex(KEYSTORE); + pnlStandardLogin.setVisible(false); + pnlPEMLogin.setVisible(false); + pnlP12Login.setVisible(false); + pnlKeystoreLogin.setVisible(true); + pnlProxyLogin.setVisible(false); + pnlKeyFSLogin.setVisible(false); + break; + case PROXY: + cbAuthScheme.setSelectedIndex(PROXY); + pnlStandardLogin.setVisible(false); + pnlPEMLogin.setVisible(false); + pnlP12Login.setVisible(false); + pnlKeystoreLogin.setVisible(false); + pnlProxyLogin.setVisible(true); + pnlKeyFSLogin.setVisible(false); + break; + case KEYFS: + cbAuthScheme.setSelectedIndex(KEYFS); + pnlStandardLogin.setVisible(false); + pnlPEMLogin.setVisible(false); + pnlP12Login.setVisible(false); + pnlKeystoreLogin.setVisible(false); + pnlProxyLogin.setVisible(false); + pnlKeyFSLogin.setVisible(true); + break; + } + } + + private void applyMode(int index) { + switch (index) { + case STANDARD: + applyMode(GDropAuthScheme.STANDARD); + populateGridAccountInfo(GDropAuthScheme.STANDARD); + break; + case PEM: + applyMode(GDropAuthScheme.PEM); + populateGridAccountInfo(GDropAuthScheme.PEM); + break; + case P12: + applyMode(GDropAuthScheme.P12); + populateGridAccountInfo(GDropAuthScheme.P12); + break; + case KEYSTORE: + applyMode(GDropAuthScheme.KEYSTORE); + populateGridAccountInfo(GDropAuthScheme.KEYSTORE); + break; + case PROXY: + applyMode(GDropAuthScheme.PROXY); + populateGridAccountInfo(GDropAuthScheme.PROXY); + break; + case KEYFS: + applyMode(GDropAuthScheme.KEYFS); + populateGridAccountInfo(GDropAuthScheme.KEYFS); + break; + } + } + + private void populateStandardGridAccountInfo() { + GDropAuthScheme authScheme = gridAccount.getGDropAuthScheme(); + + String host = gridAccount.getHost(); + if (host != null) { + lblHostAddress.setText(host); + } + + int port = gridAccount.getPort(); + txtPort.setText(String.valueOf(port)); + + String zone = gridAccount.getZone(); + if (zone != null) { + lblZoneValue.setText(zone); + } + + String user = gridAccount.getUserName(); + if (user != null) { + txtUsername.setText(user); + } + + // need to get plain test password + GridAccountService gridAccountService = idropCore.getConveyorService().getGridAccountService(); + IRODSAccount irodAccountForPswd = null; + String pswd = null; + try { + irodAccountForPswd = gridAccountService.irodsAccountForGridAccount(gridAccount); + } catch (ConveyorExecutionException ex) { + Logger.getLogger(GDropOldLoginDialog.class.getName()).log( + Level.SEVERE, null, ex); + JOptionPane.showMessageDialog( + this, + "Could not retrieve stored password for this account.", + "Edit Grid Account", JOptionPane.ERROR_MESSAGE); + } catch (Exception e) { + // Account not found, but this is expected situation in case default grid is created in GridMemoryDialog + // QCG-Data specific feature + Logger.getLogger(GDropOldLoginDialog.class.getName()).log( + Level.INFO, null, e); +// JOptionPane.showMessageDialog( +// this, +// "No user name and password.", +// "Edit Grid Account", JOptionPane.ERROR_MESSAGE); + } + if (irodAccountForPswd != null) { + pswd = irodAccountForPswd.getPassword(); + } + if (pswd != null) { + txtPassword.setText(pswd); + txtVerifyPassword.setText(pswd); + } + + String defResc = gridAccount.getDefaultResource(); + if (defResc != null) { + txtDefaultResource.setText(defResc); + } + + String initPath = gridAccount.getDefaultPath(); + if (initPath != null) { + txtInitialPath.setText(initPath); + } + + String comment = gridAccount.getComment(); + if (comment != null) { + txtComment.setText(comment); + } + } + + private void populateGSIGridAccountInfo() { + GDropAuthScheme authScheme = gridAccount.getGDropAuthScheme(); + + /* String host = gridAccount.getHost(); + if (host != null) { + lblHostAddress1.setText(host); + } + + int port = gridAccount.getPort(); + txtPort1.setText(String.valueOf(port)); + + String zone = gridAccount.getZone(); + if (zone != null) { + lblZoneValue1.setText(zone); + } + + String defResc = gridAccount.getDefaultResource(); + if (defResc != null) { + txtDefaultResource1.setText(defResc); + } + + String initPath = gridAccount.getDefaultPath(); + if (initPath != null) { + txtInitialPath1.setText(initPath); + } + + String comment = gridAccount.getComment(); + if (comment != null) { + txtComment1.setText(comment); + } */ + } + + private void populateKeyFSGridAccountInfo() { + GDropAuthScheme authScheme = gridAccount.getGDropAuthScheme(); + + /* String host = gridAccount.getHost(); + if (host != null) { + lblHostAddress2.setText(host); + } + + int port = gridAccount.getPort(); + txtPort2.setText(String.valueOf(port)); + + String zone = gridAccount.getZone(); + if (zone != null) { + lblZoneValue2.setText(zone); + } + + String defResc = gridAccount.getDefaultResource(); + if (defResc != null) { + txtDefaultResource2.setText(defResc); + } + + String initPath = gridAccount.getDefaultPath(); + if (initPath != null) { + txtInitialPath2.setText(initPath); + } + + // KeyFS specific fields - begin + String plgridUsername = gridAccount.getPlgridUserName(); + if (plgridUsername != null) { + txtplgridUsername.setText(plgridUsername); + } + + String plgridPassword = gridAccount.getPlgridPassword(); + if (plgridPassword != null) { + txtPlgridPassword.setText(plgridPassword); + } + + String plgridKeyPassword = gridAccount.getKeyPassword(); + if (plgridKeyPassword != null) { + txtKeyPassword.setText(plgridKeyPassword); + } + // KeyFS specific fields - end + + String comment = gridAccount.getComment(); + if (comment != null) { + txtComment2.setText(comment); + } */ + } + + private GDropIRODSAccount createIRODSAccountFromStandardForm() { + GDropIRODSAccount acct = null; + + String host = this.gridAccount.getHost(); + String strPort = txtPort.getText().trim(); + int port = 0; + if ((strPort != null) && (!strPort.isEmpty())) { + port = Integer.valueOf(strPort).intValue(); + } + String zone = this.gridAccount.getZone(); +// String user = this.gridAccount.getUserName(); + String user = txtUsername.getText().trim(); + String password = txtPassword.getText().trim(); + String verifyPassword = txtVerifyPassword.getText().trim(); + String defaultResc = txtDefaultResource.getText().trim(); + String initialPath = txtInitialPath.getText().trim(); + if ((txtInitialPath.getText() == null) || (txtInitialPath.getText().isEmpty())) { + StringBuilder homeBuilder = new StringBuilder(); + homeBuilder.append("/"); + homeBuilder.append(zone); + homeBuilder.append("/home/"); + homeBuilder.append(user); + initialPath = homeBuilder.toString(); + } + + // check to make sure passwords match + if (!password.equals(verifyPassword)) { + JOptionPane.showMessageDialog( + this, + "Passwords do not match. Please try again.", + "Edit Grid Account", JOptionPane.ERROR_MESSAGE); + return acct; + } + + GridAccountService gridAccountService = idropCore.getConveyorService().getGridAccountService(); + + // need to do this to retrieve plain text password + IRODSAccount irodAccountForPswd = null; + + // not needed if collecting password from form +// try { +// irodAccountForPswd = gridAccountService.irodsAccountForGridAccount(gridAccount); +// } catch (ConveyorExecutionException ex) { +// Logger.getLogger(EditGridInfoDialog.class.getName()).log( +// Level.SEVERE, null, ex); +// JOptionPane.showMessageDialog( +// this, +// "Update of grid account failed. Could not store password.", +// "Edit Grid Account", JOptionPane.ERROR_MESSAGE); +// } + + try { + acct = GDropIRODSAccount.instance(host, port, user, password, initialPath, zone, defaultResc); + } catch (JargonException ex) { + JOptionPane.showMessageDialog( + this, + "Please enter grid account information. Host, port, zone, and user name are required.", + "Edit Grid Account", JOptionPane.ERROR_MESSAGE); + return acct; + } catch (IllegalArgumentException ex) { + JOptionPane.showMessageDialog( + this, + "Please enter grid account information. Host, port, zone, and user name are required.", + "Edit Grid Account", JOptionPane.ERROR_MESSAGE); + return acct; + } + + // now add authorization scheme to gridaccount + GDropAuthScheme scheme = (GDropAuthScheme) cbAuthScheme.getSelectedItem(); + if (scheme != null) { + acct.setGDropAuthenticationScheme(scheme); + } + + return acct; + } + + private GDropIRODSAccount createIRODSAccountFromGSIForm() { + return null; + } + + private GDropIRODSAccount createIRODSAccountFromKeyFSForm() { + GDropIRODSAccount acct = null; + + String host = this.gridAccount.getHost(); + String strPort = txtPort.getText().trim(); + int port = 0; + if ((strPort != null) && (!strPort.isEmpty())) { + port = Integer.valueOf(strPort).intValue(); + } + String zone = this.gridAccount.getZone(); +// String user = this.gridAccount.getUserName(); + String user = txtUsername.getText().trim(); + String plgridUser = txtplgridUsername.getText().trim(); + String plgridPassword = txtPlgridPassword.getText().trim(); + String keyPassword = txtKeyPassword.getText().trim(); + String defaultResc = txtDefaultResource.getText().trim(); + String initialPath = txtInitialPath.getText().trim(); + if ((txtInitialPath.getText() == null) || (txtInitialPath.getText().isEmpty())) { + StringBuilder homeBuilder = new StringBuilder(); + homeBuilder.append("/"); + homeBuilder.append(zone); + homeBuilder.append("/home/"); + homeBuilder.append(user); + initialPath = homeBuilder.toString(); + } + + + GridAccountService gridAccountService = idropCore.getConveyorService().getGridAccountService(); + + // need to do this to retrieve plain text password + IRODSAccount irodAccountForPswd = null; + + // not needed if collecting password from form +// try { +// irodAccountForPswd = gridAccountService.irodsAccountForGridAccount(gridAccount); +// } catch (ConveyorExecutionException ex) { +// Logger.getLogger(EditGridInfoDialog.class.getName()).log( +// Level.SEVERE, null, ex); +// JOptionPane.showMessageDialog( +// this, +// "Update of grid account failed. Could not store password.", +// "Edit Grid Account", JOptionPane.ERROR_MESSAGE); +// } + + try { + acct = GDropIRODSAccount.instance(host, port, user, plgridUser, plgridPassword, keyPassword, initialPath, zone, defaultResc); + } catch (JargonException ex) { + JOptionPane.showMessageDialog( + this, + "Please enter grid account information. Host, port, zone, and user name are required.", + "Edit Grid Account", JOptionPane.ERROR_MESSAGE); + return acct; + } catch (IllegalArgumentException ex) { + JOptionPane.showMessageDialog( + this, + "Please enter grid account information. Host, port, zone, and user name are required.", + "Edit Grid Account", JOptionPane.ERROR_MESSAGE); + return acct; + } + + // now add authorization scheme to gridaccount + GDropAuthScheme scheme = (GDropAuthScheme) cbAuthScheme.getSelectedItem(); + if (scheme != null) { + acct.setGDropAuthenticationScheme(scheme); + } + + return acct; + } + + private void populateGridAccountInfo(GDropAuthScheme gDropAuthScheme) { + switch (gDropAuthScheme) { + case STANDARD: + populateStandardGridAccountInfo(); + break; + case PEM: + break; + case P12: + break; + case KEYSTORE: + break; + case PROXY: + break; + case KEYFS: + populateKeyFSGridAccountInfo(); + break; + } + } + + private GDropAuthScheme getSelectedAuthScheme() { + GDropAuthScheme authScheme = (GDropAuthScheme) cbAuthScheme.getSelectedItem(); + return authScheme; + } + + private void selectFile(JTextField txtControl) { + if (txtControl == null) { + return; + } + + // Show Open File dialog + JFileChooser fileChooser = new JFileChooser(); + fileChooser.setVisible(true); + fileChooser.showOpenDialog(this); + // Write path of selected file to appropriate text control + File file = fileChooser.getSelectedFile(); + if (file != null) { + txtControl.setText(file.getAbsolutePath()); + } + } +} diff --git a/idrop-swing/src/main/java/org/irods/jargon/idrop/desktop/gdrop/GDropOldLoginDialog.form b/idrop-swing/src/main/java/org/irods/jargon/idrop/desktop/gdrop/GDropOldLoginDialog.form new file mode 100644 index 0000000..83a5d55 --- /dev/null +++ b/idrop-swing/src/main/java/org/irods/jargon/idrop/desktop/gdrop/GDropOldLoginDialog.form @@ -0,0 +1,1239 @@ +<?xml version="1.0" encoding="UTF-8" ?> + +<Form version="1.8" maxVersion="1.8" type="org.netbeans.modules.form.forminfo.JDialogFormInfo"> + <Properties> + <Property name="defaultCloseOperation" type="int" value="2"/> + </Properties> + <SyntheticProperties> + <SyntheticProperty name="formSizePolicy" type="int" value="1"/> + <SyntheticProperty name="generateCenter" type="boolean" value="false"/> + </SyntheticProperties> + <AuxValues> + <AuxValue name="FormSettings_autoResourcing" type="java.lang.Integer" value="1"/> + <AuxValue name="FormSettings_autoSetComponentName" type="java.lang.Boolean" value="false"/> + <AuxValue name="FormSettings_generateFQN" type="java.lang.Boolean" value="true"/> + <AuxValue name="FormSettings_generateMnemonicsCode" type="java.lang.Boolean" value="false"/> + <AuxValue name="FormSettings_i18nAutoMode" type="java.lang.Boolean" value="true"/> + <AuxValue name="FormSettings_layoutCodeTarget" type="java.lang.Integer" value="2"/> + <AuxValue name="FormSettings_listenerGenerationStyle" type="java.lang.Integer" value="0"/> + <AuxValue name="FormSettings_variablesLocal" type="java.lang.Boolean" value="false"/> + <AuxValue name="FormSettings_variablesModifier" type="java.lang.Integer" value="2"/> + <AuxValue name="designerSize" type="java.awt.Dimension" value="-84,-19,0,5,115,114,0,18,106,97,118,97,46,97,119,116,46,68,105,109,101,110,115,105,111,110,65,-114,-39,-41,-84,95,68,20,2,0,2,73,0,6,104,101,105,103,104,116,73,0,5,119,105,100,116,104,120,112,0,0,1,-99,0,0,6,-112"/> + </AuxValues> + <SubComponents> + <Container class="javax.swing.JPanel" name="pnlStandardLogin"> + <Properties> + <Property name="border" type="javax.swing.border.Border" editor="org.netbeans.modules.form.editors2.BorderEditor"> + <Border info="org.netbeans.modules.form.compat2.border.EmptyBorderInfo"> + <EmptyBorder bottom="4" left="10" right="10" top="20"/> + </Border> + </Property> + <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor"> + <Dimension value="[450, 500]"/> + </Property> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout" value="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout$GridBagConstraintsDescription"> + <GridBagConstraints gridX="0" gridY="0" gridWidth="1" gridHeight="1" fill="0" ipadX="0" ipadY="0" insetsTop="0" insetsLeft="0" insetsBottom="0" insetsRight="0" anchor="10" weightX="0.0" weightY="0.0"/> + </Constraint> + </Constraints> + + <Layout> + <DimensionLayout dim="0"> + <Group type="103" groupAlignment="0" attributes="0"> + <Group type="102" alignment="0" attributes="0"> + <Group type="103" groupAlignment="0" attributes="0"> + <Group type="102" alignment="1" attributes="0"> + <EmptySpace min="40" pref="143" max="32767" attributes="0"/> + <Group type="103" groupAlignment="0" attributes="0"> + <Group type="102" alignment="0" attributes="0"> + <EmptySpace min="1" pref="1" max="-2" attributes="0"/> + <Component id="lblHost" min="-2" max="-2" attributes="0"/> + </Group> + <Group type="102" alignment="0" attributes="0"> + <EmptySpace min="-2" pref="10" max="-2" attributes="0"/> + <Component id="lblPort" min="-2" max="-2" attributes="0"/> + </Group> + <Component id="lblZone" alignment="0" min="-2" max="-2" attributes="0"/> + </Group> + </Group> + <Group type="102" alignment="0" attributes="0"> + <EmptySpace min="34" pref="34" max="-2" attributes="0"/> + <Component id="lblConfirmPassword" min="-2" max="-2" attributes="0"/> + </Group> + <Group type="102" alignment="0" attributes="0"> + <EmptySpace min="41" pref="41" max="-2" attributes="0"/> + <Component id="lblUserName" min="-2" max="-2" attributes="0"/> + </Group> + <Group type="102" alignment="0" attributes="0"> + <EmptySpace min="31" pref="31" max="-2" attributes="0"/> + <Component id="lblStartingCollection" min="-2" max="-2" attributes="0"/> + </Group> + <Group type="102" alignment="0" attributes="0"> + <EmptySpace min="10" pref="10" max="-2" attributes="0"/> + <Component id="lblAuthorozationScheme" min="-2" max="-2" attributes="0"/> + </Group> + <Group type="102" alignment="0" attributes="0"> + <EmptySpace min="87" pref="87" max="-2" attributes="0"/> + <Component id="lblComment" min="-2" max="-2" attributes="0"/> + </Group> + <Group type="102" alignment="0" attributes="0"> + <EmptySpace min="89" pref="89" max="-2" attributes="0"/> + <Component id="lblPassword" min="-2" max="-2" attributes="0"/> + </Group> + <Group type="102" alignment="0" attributes="0"> + <EmptySpace min="116" pref="116" max="-2" attributes="0"/> + <Component id="lblUser" min="-2" max="-2" attributes="0"/> + </Group> + </Group> + <EmptySpace max="-2" attributes="0"/> + <Group type="103" groupAlignment="0" attributes="0"> + <Component id="jScrollPane1" alignment="1" min="-2" pref="236" max="-2" attributes="0"/> + <Component id="cbAuthScheme" alignment="1" min="-2" pref="236" max="-2" attributes="0"/> + <Component id="txtInitialPath" alignment="1" min="-2" pref="236" max="-2" attributes="0"/> + <Component id="txtDefaultResource" alignment="1" min="-2" pref="236" max="-2" attributes="0"/> + <Component id="txtVerifyPassword" alignment="1" min="-2" pref="236" max="-2" attributes="0"/> + <Component id="txtPassword" linkSize="1" alignment="1" min="-2" pref="236" max="-2" attributes="0"/> + <Component id="txtUsername" linkSize="1" alignment="1" min="-2" pref="167" max="-2" attributes="0"/> + <Component id="lblZoneValue" alignment="1" min="-2" pref="230" max="-2" attributes="0"/> + <Component id="txtPort" alignment="1" min="-2" pref="236" max="-2" attributes="0"/> + <Component id="lblHostAddress" alignment="1" min="-2" pref="221" max="-2" attributes="0"/> + </Group> + <EmptySpace max="-2" attributes="0"/> + </Group> + </Group> + </DimensionLayout> + <DimensionLayout dim="1"> + <Group type="103" groupAlignment="0" attributes="0"> + <Group type="102" alignment="0" attributes="0"> + <Group type="103" groupAlignment="1" attributes="0"> + <Group type="102" alignment="1" attributes="0"> + <Component id="lblHost" min="-2" max="-2" attributes="0"/> + <Group type="103" groupAlignment="0" attributes="0"> + <Group type="102" alignment="0" attributes="0"> + <EmptySpace min="6" pref="6" max="-2" attributes="0"/> + <Component id="lblPort" min="-2" pref="16" max="-2" attributes="0"/> + </Group> + <Component id="txtPort" alignment="0" min="-2" max="-2" attributes="0"/> + </Group> + </Group> + <Group type="102" alignment="0" attributes="0"> + <Component id="lblHostAddress" min="-2" max="-2" attributes="0"/> + <EmptySpace min="-2" pref="23" max="-2" attributes="0"/> + </Group> + </Group> + <Group type="103" groupAlignment="0" attributes="0"> + <Component id="lblZone" alignment="0" min="-2" max="-2" attributes="0"/> + <Group type="102" alignment="1" attributes="0"> + <EmptySpace max="-2" attributes="0"/> + <Component id="lblZoneValue" min="-2" max="-2" attributes="0"/> + </Group> + </Group> + <EmptySpace max="-2" attributes="0"/> + <Group type="103" groupAlignment="0" attributes="0"> + <Component id="lblUser" alignment="0" min="-2" max="-2" attributes="0"/> + <Component id="txtUsername" alignment="0" min="-2" max="-2" attributes="0"/> + </Group> + <EmptySpace max="-2" attributes="0"/> + <Group type="103" groupAlignment="0" attributes="0"> + <Group type="102" alignment="0" attributes="0"> + <EmptySpace min="6" pref="6" max="-2" attributes="0"/> + <Component id="lblPassword" min="-2" max="-2" attributes="0"/> + </Group> + <Component id="txtPassword" alignment="0" min="-2" max="-2" attributes="0"/> + </Group> + <Group type="103" groupAlignment="0" attributes="0"> + <Group type="102" alignment="0" attributes="0"> + <EmptySpace min="6" pref="6" max="-2" attributes="0"/> + <Component id="lblConfirmPassword" min="-2" max="-2" attributes="0"/> + </Group> + <Component id="txtVerifyPassword" alignment="0" min="-2" max="-2" attributes="0"/> + </Group> + <Group type="103" groupAlignment="0" attributes="0"> + <Group type="102" alignment="0" attributes="0"> + <EmptySpace min="6" pref="6" max="-2" attributes="0"/> + <Component id="lblUserName" min="-2" max="-2" attributes="0"/> + </Group> + <Component id="txtDefaultResource" alignment="0" min="-2" max="-2" attributes="0"/> + </Group> + <Group type="103" groupAlignment="0" attributes="0"> + <Group type="102" alignment="0" attributes="0"> + <EmptySpace min="6" pref="6" max="-2" attributes="0"/> + <Component id="lblStartingCollection" min="-2" max="-2" attributes="0"/> + </Group> + <Component id="txtInitialPath" alignment="0" min="-2" max="-2" attributes="0"/> + </Group> + <Group type="103" groupAlignment="0" attributes="0"> + <Group type="102" alignment="0" attributes="0"> + <EmptySpace min="5" pref="5" max="-2" attributes="0"/> + <Component id="lblAuthorozationScheme" min="-2" max="-2" attributes="0"/> + </Group> + <Component id="cbAuthScheme" alignment="0" min="-2" max="-2" attributes="0"/> + </Group> + <Group type="103" groupAlignment="0" attributes="0"> + <Component id="lblComment" min="-2" max="-2" attributes="0"/> + <Component id="jScrollPane1" min="-2" pref="39" max="-2" attributes="0"/> + </Group> + </Group> + </Group> + </DimensionLayout> + </Layout> + <SubComponents> + <Component class="javax.swing.JLabel" name="lblHost"> + <Properties> + <Property name="horizontalAlignment" type="int" value="4"/> + <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor"> + <ResourceString bundle="org/irods/jargon/idrop/desktop/gdrop/Bundle.properties" key="GDropOldLoginDialog.lblHost.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/> + </Property> + </Properties> + </Component> + <Component class="javax.swing.JLabel" name="lblHostAddress"> + <Properties> + <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor"> + <ResourceString bundle="org/irods/jargon/idrop/desktop/gdrop/Bundle.properties" key="GDropOldLoginDialog.lblHostAddress.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/> + </Property> + <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor"> + <Dimension value="[0, 28]"/> + </Property> + </Properties> + </Component> + <Component class="javax.swing.JLabel" name="lblPort"> + <Properties> + <Property name="horizontalAlignment" type="int" value="4"/> + <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor"> + <ResourceString bundle="org/irods/jargon/idrop/desktop/gdrop/Bundle.properties" key="GDropOldLoginDialog.lblPort.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/> + </Property> + <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor"> + <Dimension value="[29, 28]"/> + </Property> + </Properties> + </Component> + <Component class="javax.swing.JTextField" name="txtPort"> + <Properties> + <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor"> + <ResourceString bundle="org/irods/jargon/idrop/desktop/gdrop/Bundle.properties" key="GDropOldLoginDialog.txtPort.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/> + </Property> + <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor"> + <Dimension value="[200, 28]"/> + </Property> + </Properties> + </Component> + <Component class="javax.swing.JLabel" name="lblZone"> + <Properties> + <Property name="horizontalAlignment" type="int" value="4"/> + <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor"> + <ResourceString bundle="org/irods/jargon/idrop/desktop/gdrop/Bundle.properties" key="GDropOldLoginDialog.lblZone.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/> + </Property> + </Properties> + </Component> + <Component class="javax.swing.JLabel" name="lblZoneValue"> + <Properties> + <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor"> + <ResourceString bundle="org/irods/jargon/idrop/desktop/gdrop/Bundle.properties" key="GDropOldLoginDialog.lblZoneValue.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/> + </Property> + <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor"> + <Dimension value="[0, 28]"/> + </Property> + </Properties> + </Component> + <Component class="javax.swing.JLabel" name="lblUser"> + <Properties> + <Property name="horizontalAlignment" type="int" value="4"/> + <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor"> + <ResourceString bundle="org/irods/jargon/idrop/desktop/gdrop/Bundle.properties" key="GDropOldLoginDialog.lblUser.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/> + </Property> + </Properties> + </Component> + <Component class="javax.swing.JLabel" name="lblUserName"> + <Properties> + <Property name="horizontalAlignment" type="int" value="4"/> + <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor"> + <ResourceString bundle="org/irods/jargon/idrop/desktop/gdrop/Bundle.properties" key="GDropOldLoginDialog.lblUserName.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/> + </Property> + </Properties> + </Component> + <Component class="javax.swing.JTextField" name="txtDefaultResource"> + <Properties> + <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor"> + <ResourceString bundle="org/irods/jargon/idrop/desktop/gdrop/Bundle.properties" key="GDropOldLoginDialog.txtDefaultResource.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/> + </Property> + <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor"> + <Dimension value="[200, 28]"/> + </Property> + </Properties> + </Component> + <Component class="javax.swing.JLabel" name="lblStartingCollection"> + <Properties> + <Property name="horizontalAlignment" type="int" value="4"/> + <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor"> + <ResourceString bundle="org/irods/jargon/idrop/desktop/gdrop/Bundle.properties" key="GDropOldLoginDialog.lblStartingCollection.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/> + </Property> + </Properties> + </Component> + <Component class="javax.swing.JTextField" name="txtInitialPath"> + <Properties> + <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor"> + <ResourceString bundle="org/irods/jargon/idrop/desktop/gdrop/Bundle.properties" key="GDropOldLoginDialog.txtInitialPath.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/> + </Property> + </Properties> + </Component> + <Component class="javax.swing.JLabel" name="lblAuthorozationScheme"> + <Properties> + <Property name="horizontalAlignment" type="int" value="4"/> + <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor"> + <ResourceString bundle="org/irods/jargon/idrop/desktop/gdrop/Bundle.properties" key="GDropOldLoginDialog.lblAuthorozationScheme.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/> + </Property> + </Properties> + </Component> + <Component class="javax.swing.JComboBox" name="cbAuthScheme"> + <Properties> + <Property name="model" type="javax.swing.ComboBoxModel" editor="org.netbeans.modules.form.editors2.ComboBoxModelEditor"> + <StringArray count="0"/> + </Property> + </Properties> + <Events> + <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="cbAuthSchemeActionPerformed"/> + <EventHandler event="propertyChange" listener="java.beans.PropertyChangeListener" parameters="java.beans.PropertyChangeEvent" handler="cbAuthSchemePropertyChange"/> + </Events> + </Component> + <Component class="javax.swing.JLabel" name="lblComment"> + <Properties> + <Property name="horizontalAlignment" type="int" value="4"/> + <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor"> + <ResourceString bundle="org/irods/jargon/idrop/desktop/gdrop/Bundle.properties" key="GDropOldLoginDialog.lblComment.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/> + </Property> + </Properties> + </Component> + <Container class="javax.swing.JScrollPane" name="jScrollPane1"> + <Properties> + <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor"> + <Dimension value="[224, 84]"/> + </Property> + </Properties> + <AuxValues> + <AuxValue name="autoScrollPane" type="java.lang.Boolean" value="true"/> + </AuxValues> + + <Layout class="org.netbeans.modules.form.compat2.layouts.support.JScrollPaneSupportLayout"/> + <SubComponents> + <Component class="javax.swing.JTextArea" name="textareaComment"> + <Properties> + <Property name="columns" type="int" value="20"/> + <Property name="rows" type="int" value="5"/> + </Properties> + </Component> + </SubComponents> + </Container> + <Component class="javax.swing.JPasswordField" name="txtPassword"> + <Properties> + <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor"> + <ResourceString bundle="org/irods/jargon/idrop/desktop/gdrop/Bundle.properties" key="GDropOldLoginDialog.txtPassword.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/> + </Property> + </Properties> + </Component> + <Component class="javax.swing.JLabel" name="lblPassword"> + <Properties> + <Property name="horizontalAlignment" type="int" value="4"/> + <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor"> + <ResourceString bundle="org/irods/jargon/idrop/desktop/gdrop/Bundle.properties" key="GDropOldLoginDialog.lblPassword.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/> + </Property> + </Properties> + </Component> + <Component class="javax.swing.JLabel" name="lblConfirmPassword"> + <Properties> + <Property name="horizontalAlignment" type="int" value="4"/> + <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor"> + <ResourceString bundle="org/irods/jargon/idrop/desktop/gdrop/Bundle.properties" key="GDropOldLoginDialog.lblConfirmPassword.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/> + </Property> + </Properties> + </Component> + <Component class="javax.swing.JPasswordField" name="txtVerifyPassword"> + <Properties> + <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor"> + <ResourceString bundle="org/irods/jargon/idrop/desktop/gdrop/Bundle.properties" key="GDropOldLoginDialog.txtVerifyPassword.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/> + </Property> + </Properties> + </Component> + <Component class="javax.swing.JTextField" name="txtUsername"> + <Properties> + <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor"> + <ResourceString bundle="org/irods/jargon/idrop/desktop/gdrop/Bundle.properties" key="GDropOldLoginDialog.txtUsername.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/> + </Property> + <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor"> + <Dimension value="[200, 28]"/> + </Property> + </Properties> + <Events> + <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="txtUsernameActionPerformed"/> + </Events> + </Component> + </SubComponents> + </Container> + <Container class="javax.swing.JPanel" name="pnlGSILogin"> + <Properties> + <Property name="border" type="javax.swing.border.Border" editor="org.netbeans.modules.form.editors2.BorderEditor"> + <Border info="org.netbeans.modules.form.compat2.border.EmptyBorderInfo"> + <EmptyBorder bottom="4" left="10" right="10" top="20"/> + </Border> + </Property> + <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor"> + <Dimension value="[450, 500]"/> + </Property> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout" value="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout$GridBagConstraintsDescription"> + <GridBagConstraints gridX="0" gridY="0" gridWidth="1" gridHeight="1" fill="0" ipadX="0" ipadY="0" insetsTop="0" insetsLeft="0" insetsBottom="0" insetsRight="0" anchor="10" weightX="0.0" weightY="0.0"/> + </Constraint> + </Constraints> + + <Layout> + <DimensionLayout dim="0"> + <Group type="103" groupAlignment="0" attributes="0"> + <Group type="102" alignment="0" attributes="0"> + <Group type="103" groupAlignment="0" attributes="0"> + <Group type="102" alignment="1" attributes="0"> + <EmptySpace min="40" pref="143" max="32767" attributes="0"/> + <Group type="103" groupAlignment="0" attributes="0"> + <Group type="102" alignment="0" attributes="0"> + <EmptySpace min="1" pref="1" max="-2" attributes="0"/> + <Component id="lblHost1" min="-2" max="-2" attributes="0"/> + </Group> + <Group type="102" alignment="0" attributes="0"> + <EmptySpace min="-2" pref="10" max="-2" attributes="0"/> + <Component id="lblPort1" min="-2" max="-2" attributes="0"/> + </Group> + <Component id="lblZone1" alignment="0" min="-2" max="-2" attributes="0"/> + </Group> + </Group> + <Group type="102" alignment="0" attributes="0"> + <EmptySpace min="31" pref="31" max="-2" attributes="0"/> + <Component id="lblStartingCollection1" min="-2" max="-2" attributes="0"/> + </Group> + <Group type="102" alignment="0" attributes="0"> + <EmptySpace min="10" pref="10" max="-2" attributes="0"/> + <Component id="lblAuthorozationScheme1" min="-2" max="-2" attributes="0"/> + </Group> + <Group type="102" alignment="0" attributes="0"> + <EmptySpace min="87" pref="87" max="-2" attributes="0"/> + <Component id="lblComment1" min="-2" max="-2" attributes="0"/> + </Group> + </Group> + <EmptySpace max="-2" attributes="0"/> + <Group type="103" groupAlignment="0" attributes="0"> + <Component id="jScrollPane2" alignment="1" min="-2" pref="236" max="-2" attributes="0"/> + <Component id="cbAuthScheme1" alignment="1" min="-2" pref="236" max="-2" attributes="0"/> + <Component id="txtInitialPath1" alignment="1" min="-2" pref="236" max="-2" attributes="0"/> + <Component id="txtDefaultResource1" alignment="1" min="-2" pref="236" max="-2" attributes="0"/> + <Component id="lblZoneValue1" alignment="1" min="-2" pref="230" max="-2" attributes="0"/> + <Component id="txtPort1" alignment="1" min="-2" pref="236" max="-2" attributes="0"/> + <Component id="lblHostAddress1" alignment="1" min="-2" pref="221" max="-2" attributes="0"/> + </Group> + <EmptySpace max="-2" attributes="0"/> + </Group> + </Group> + </DimensionLayout> + <DimensionLayout dim="1"> + <Group type="103" groupAlignment="0" attributes="0"> + <Group type="102" alignment="0" attributes="0"> + <Group type="103" groupAlignment="1" attributes="0"> + <Group type="102" alignment="1" attributes="0"> + <Component id="lblHost1" min="-2" max="-2" attributes="0"/> + <Group type="103" groupAlignment="0" attributes="0"> + <Group type="102" alignment="0" attributes="0"> + <EmptySpace min="6" pref="6" max="-2" attributes="0"/> + <Component id="lblPort1" min="-2" pref="16" max="-2" attributes="0"/> + </Group> + <Component id="txtPort1" alignment="0" min="-2" max="-2" attributes="0"/> + </Group> + </Group> + <Group type="102" alignment="0" attributes="0"> + <Component id="lblHostAddress1" min="-2" max="-2" attributes="0"/> + <EmptySpace min="-2" pref="23" max="-2" attributes="0"/> + </Group> + </Group> + <Group type="103" groupAlignment="0" attributes="0"> + <Component id="lblZone1" alignment="0" min="-2" max="-2" attributes="0"/> + <Group type="102" alignment="1" attributes="0"> + <EmptySpace max="-2" attributes="0"/> + <Component id="lblZoneValue1" min="-2" max="-2" attributes="0"/> + </Group> + </Group> + <EmptySpace min="-2" pref="96" max="-2" attributes="0"/> + <Component id="txtDefaultResource1" min="-2" max="-2" attributes="0"/> + <Group type="103" groupAlignment="0" attributes="0"> + <Group type="102" alignment="0" attributes="0"> + <EmptySpace min="6" pref="6" max="-2" attributes="0"/> + <Component id="lblStartingCollection1" min="-2" max="-2" attributes="0"/> + </Group> + <Component id="txtInitialPath1" alignment="0" min="-2" max="-2" attributes="0"/> + </Group> + <Group type="103" groupAlignment="0" attributes="0"> + <Group type="102" alignment="0" attributes="0"> + <EmptySpace min="5" pref="5" max="-2" attributes="0"/> + <Component id="lblAuthorozationScheme1" min="-2" max="-2" attributes="0"/> + </Group> + <Component id="cbAuthScheme1" alignment="0" min="-2" max="-2" attributes="0"/> + </Group> + <Group type="103" groupAlignment="0" attributes="0"> + <Component id="lblComment1" alignment="0" min="-2" max="-2" attributes="0"/> + <Component id="jScrollPane2" alignment="0" min="-2" pref="39" max="-2" attributes="0"/> + </Group> + </Group> + </Group> + </DimensionLayout> + </Layout> + <SubComponents> + <Component class="javax.swing.JLabel" name="lblHost1"> + <Properties> + <Property name="horizontalAlignment" type="int" value="4"/> + <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor"> + <ResourceString bundle="org/irods/jargon/idrop/desktop/gdrop/Bundle.properties" key="GDropOldLoginDialog.lblHost1.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/> + </Property> + </Properties> + </Component> + <Component class="javax.swing.JLabel" name="lblHostAddress1"> + <Properties> + <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor"> + <ResourceString bundle="org/irods/jargon/idrop/desktop/gdrop/Bundle.properties" key="GDropOldLoginDialog.lblHostAddress1.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/> + </Property> + <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor"> + <Dimension value="[0, 28]"/> + </Property> + </Properties> + </Component> + <Component class="javax.swing.JLabel" name="lblPort1"> + <Properties> + <Property name="horizontalAlignment" type="int" value="4"/> + <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor"> + <ResourceString bundle="org/irods/jargon/idrop/desktop/gdrop/Bundle.properties" key="GDropOldLoginDialog.lblPort1.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/> + </Property> + <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor"> + <Dimension value="[29, 28]"/> + </Property> + </Properties> + </Component> + <Component class="javax.swing.JTextField" name="txtPort1"> + <Properties> + <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor"> + <ResourceString bundle="org/irods/jargon/idrop/desktop/gdrop/Bundle.properties" key="GDropOldLoginDialog.txtPort1.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/> + </Property> + <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor"> + <Dimension value="[200, 28]"/> + </Property> + </Properties> + </Component> + <Component class="javax.swing.JLabel" name="lblZone1"> + <Properties> + <Property name="horizontalAlignment" type="int" value="4"/> + <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor"> + <ResourceString bundle="org/irods/jargon/idrop/desktop/gdrop/Bundle.properties" key="GDropOldLoginDialog.lblZone1.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/> + </Property> + </Properties> + </Component> + <Component class="javax.swing.JLabel" name="lblZoneValue1"> + <Properties> + <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor"> + <ResourceString bundle="org/irods/jargon/idrop/desktop/gdrop/Bundle.properties" key="GDropOldLoginDialog.lblZoneValue1.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/> + </Property> + <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor"> + <Dimension value="[0, 28]"/> + </Property> + </Properties> + </Component> + <Component class="javax.swing.JTextField" name="txtDefaultResource1"> + <Properties> + <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor"> + <ResourceString bundle="org/irods/jargon/idrop/desktop/gdrop/Bundle.properties" key="GDropOldLoginDialog.txtDefaultResource1.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/> + </Property> + <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor"> + <Dimension value="[200, 28]"/> + </Property> + </Properties> + </Component> + <Component class="javax.swing.JLabel" name="lblStartingCollection1"> + <Properties> + <Property name="horizontalAlignment" type="int" value="4"/> + <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor"> + <ResourceString bundle="org/irods/jargon/idrop/desktop/gdrop/Bundle.properties" key="GDropOldLoginDialog.lblStartingCollection1.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/> + </Property> + </Properties> + </Component> + <Component class="javax.swing.JTextField" name="txtInitialPath1"> + <Properties> + <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor"> + <ResourceString bundle="org/irods/jargon/idrop/desktop/gdrop/Bundle.properties" key="GDropOldLoginDialog.txtInitialPath1.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/> + </Property> + </Properties> + </Component> + <Component class="javax.swing.JLabel" name="lblAuthorozationScheme1"> + <Properties> + <Property name="horizontalAlignment" type="int" value="4"/> + <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor"> + <ResourceString bundle="org/irods/jargon/idrop/desktop/gdrop/Bundle.properties" key="GDropOldLoginDialog.lblAuthorozationScheme1.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/> + </Property> + </Properties> + </Component> + <Component class="javax.swing.JComboBox" name="cbAuthScheme1"> + <Properties> + <Property name="model" type="javax.swing.ComboBoxModel" editor="org.netbeans.modules.form.editors2.ComboBoxModelEditor"> + <StringArray count="0"/> + </Property> + </Properties> + <Events> + <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="cbAuthScheme1ActionPerformed"/> + <EventHandler event="propertyChange" listener="java.beans.PropertyChangeListener" parameters="java.beans.PropertyChangeEvent" handler="cbAuthScheme1PropertyChange"/> + </Events> + </Component> + <Component class="javax.swing.JLabel" name="lblComment1"> + <Properties> + <Property name="horizontalAlignment" type="int" value="4"/> + <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor"> + <ResourceString bundle="org/irods/jargon/idrop/desktop/gdrop/Bundle.properties" key="GDropOldLoginDialog.lblComment1.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/> + </Property> + </Properties> + </Component> + <Container class="javax.swing.JScrollPane" name="jScrollPane2"> + <Properties> + <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor"> + <Dimension value="[224, 84]"/> + </Property> + </Properties> + <AuxValues> + <AuxValue name="autoScrollPane" type="java.lang.Boolean" value="true"/> + </AuxValues> + + <Layout class="org.netbeans.modules.form.compat2.layouts.support.JScrollPaneSupportLayout"/> + <SubComponents> + <Component class="javax.swing.JTextArea" name="textareaComment1"> + <Properties> + <Property name="columns" type="int" value="20"/> + <Property name="rows" type="int" value="5"/> + </Properties> + </Component> + </SubComponents> + </Container> + </SubComponents> + </Container> + <Container class="javax.swing.JPanel" name="pnlKeyFSLogin"> + <Properties> + <Property name="border" type="javax.swing.border.Border" editor="org.netbeans.modules.form.editors2.BorderEditor"> + <Border info="org.netbeans.modules.form.compat2.border.EmptyBorderInfo"> + <EmptyBorder bottom="4" left="10" right="10" top="20"/> + </Border> + </Property> + <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor"> + <Dimension value="[450, 500]"/> + </Property> + </Properties> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout" value="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout$GridBagConstraintsDescription"> + <GridBagConstraints gridX="0" gridY="0" gridWidth="1" gridHeight="1" fill="0" ipadX="0" ipadY="0" insetsTop="0" insetsLeft="0" insetsBottom="0" insetsRight="0" anchor="10" weightX="0.0" weightY="0.0"/> + </Constraint> + </Constraints> + + <Layout> + <DimensionLayout dim="0"> + <Group type="103" groupAlignment="0" attributes="0"> + <Group type="102" alignment="0" attributes="0"> + <Group type="103" groupAlignment="0" attributes="0"> + <Group type="102" alignment="1" attributes="0"> + <EmptySpace min="40" pref="143" max="32767" attributes="0"/> + <Group type="103" groupAlignment="0" attributes="0"> + <Group type="102" alignment="0" attributes="0"> + <EmptySpace min="1" pref="1" max="-2" attributes="0"/> + <Component id="lblHost2" min="-2" max="-2" attributes="0"/> + </Group> + <Group type="102" alignment="0" attributes="0"> + <EmptySpace min="-2" pref="10" max="-2" attributes="0"/> + <Component id="lblPort2" min="-2" max="-2" attributes="0"/> + </Group> + <Component id="lblZone2" alignment="0" min="-2" max="-2" attributes="0"/> + </Group> + </Group> + <Group type="102" alignment="0" attributes="0"> + <EmptySpace min="31" pref="31" max="-2" attributes="0"/> + <Component id="lblStartingCollection2" min="-2" max="-2" attributes="0"/> + </Group> + <Group type="102" alignment="0" attributes="0"> + <EmptySpace min="10" pref="10" max="-2" attributes="0"/> + <Component id="lblAuthorozationScheme2" min="-2" max="-2" attributes="0"/> + </Group> + <Group type="102" alignment="0" attributes="0"> + <EmptySpace min="87" pref="87" max="-2" attributes="0"/> + <Component id="lblComment2" min="-2" max="-2" attributes="0"/> + </Group> + </Group> + <EmptySpace max="-2" attributes="0"/> + <Group type="103" groupAlignment="0" attributes="0"> + <Component id="jScrollPane3" alignment="1" min="-2" pref="236" max="-2" attributes="0"/> + <Component id="cbAuthScheme2" alignment="1" min="-2" pref="236" max="-2" attributes="0"/> + <Component id="txtInitialPath2" alignment="1" min="-2" pref="236" max="-2" attributes="0"/> + <Component id="txtDefaultResource2" alignment="1" min="-2" pref="236" max="-2" attributes="0"/> + <Component id="txtUsername2" alignment="1" min="-2" pref="167" max="-2" attributes="0"/> + <Component id="lblZoneValue2" alignment="1" min="-2" pref="230" max="-2" attributes="0"/> + <Component id="txtPort2" alignment="1" min="-2" pref="236" max="-2" attributes="0"/> + <Component id="lblHostAddress2" alignment="1" min="-2" pref="221" max="-2" attributes="0"/> + </Group> + <EmptySpace max="-2" attributes="0"/> + </Group> + </Group> + </DimensionLayout> + <DimensionLayout dim="1"> + <Group type="103" groupAlignment="0" attributes="0"> + <Group type="102" alignment="0" attributes="0"> + <Group type="103" groupAlignment="1" attributes="0"> + <Group type="102" alignment="1" attributes="0"> + <Component id="lblHost2" min="-2" max="-2" attributes="0"/> + <Group type="103" groupAlignment="0" attributes="0"> + <Group type="102" alignment="0" attributes="0"> + <EmptySpace min="6" pref="6" max="-2" attributes="0"/> + <Component id="lblPort2" min="-2" pref="16" max="-2" attributes="0"/> + </Group> + <Component id="txtPort2" alignment="0" min="-2" max="-2" attributes="0"/> + </Group> + </Group> + <Group type="102" alignment="0" attributes="0"> + <Component id="lblHostAddress2" min="-2" max="-2" attributes="0"/> + <EmptySpace min="-2" pref="23" max="-2" attributes="0"/> + </Group> + </Group> + <Group type="103" groupAlignment="0" attributes="0"> + <Component id="lblZone2" alignment="0" min="-2" max="-2" attributes="0"/> + <Group type="102" alignment="1" attributes="0"> + <EmptySpace max="-2" attributes="0"/> + <Component id="lblZoneValue2" min="-2" max="-2" attributes="0"/> + </Group> + </Group> + <EmptySpace max="-2" attributes="0"/> + <Component id="txtUsername2" min="-2" max="-2" attributes="0"/> + <EmptySpace min="-2" pref="62" max="-2" attributes="0"/> + <Component id="txtDefaultResource2" min="-2" max="-2" attributes="0"/> + <Group type="103" groupAlignment="0" attributes="0"> + <Group type="102" alignment="0" attributes="0"> + <EmptySpace min="6" pref="6" max="-2" attributes="0"/> + <Component id="lblStartingCollection2" min="-2" max="-2" attributes="0"/> + </Group> + <Component id="txtInitialPath2" alignment="0" min="-2" max="-2" attributes="0"/> + </Group> + <Group type="103" groupAlignment="0" attributes="0"> + <Group type="102" alignment="0" attributes="0"> + <EmptySpace min="5" pref="5" max="-2" attributes="0"/> + <Component id="lblAuthorozationScheme2" min="-2" max="-2" attributes="0"/> + </Group> + <Component id="cbAuthScheme2" alignment="0" min="-2" max="-2" attributes="0"/> + </Group> + <Group type="103" groupAlignment="0" attributes="0"> + <Component id="lblComment2" alignment="0" min="-2" max="-2" attributes="0"/> + <Component id="jScrollPane3" alignment="0" min="-2" pref="39" max="-2" attributes="0"/> + </Group> + </Group> + </Group> + </DimensionLayout> + </Layout> + <SubComponents> + <Component class="javax.swing.JLabel" name="lblHost2"> + <Properties> + <Property name="horizontalAlignment" type="int" value="4"/> + <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor"> + <ResourceString bundle="org/irods/jargon/idrop/desktop/gdrop/Bundle.properties" key="GDropOldLoginDialog.lblHost2.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/> + </Property> + </Properties> + </Component> + <Component class="javax.swing.JLabel" name="lblHostAddress2"> + <Properties> + <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor"> + <ResourceString bundle="org/irods/jargon/idrop/desktop/gdrop/Bundle.properties" key="GDropOldLoginDialog.lblHostAddress2.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/> + </Property> + <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor"> + <Dimension value="[0, 28]"/> + </Property> + </Properties> + </Component> + <Component class="javax.swing.JLabel" name="lblPort2"> + <Properties> + <Property name="horizontalAlignment" type="int" value="4"/> + <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor"> + <ResourceString bundle="org/irods/jargon/idrop/desktop/gdrop/Bundle.properties" key="GDropOldLoginDialog.lblPort2.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/> + </Property> + <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor"> + <Dimension value="[29, 28]"/> + </Property> + </Properties> + </Component> + <Component class="javax.swing.JTextField" name="txtPort2"> + <Properties> + <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor"> + <ResourceString bundle="org/irods/jargon/idrop/desktop/gdrop/Bundle.properties" key="GDropOldLoginDialog.txtPort2.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/> + </Property> + <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor"> + <Dimension value="[200, 28]"/> + </Property> + </Properties> + </Component> + <Component class="javax.swing.JLabel" name="lblZone2"> + <Properties> + <Property name="horizontalAlignment" type="int" value="4"/> + <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor"> + <ResourceString bundle="org/irods/jargon/idrop/desktop/gdrop/Bundle.properties" key="GDropOldLoginDialog.lblZone2.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/> + </Property> + </Properties> + </Component> + <Component class="javax.swing.JLabel" name="lblZoneValue2"> + <Properties> + <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor"> + <ResourceString bundle="org/irods/jargon/idrop/desktop/gdrop/Bundle.properties" key="GDropOldLoginDialog.lblZoneValue2.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/> + </Property> + <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor"> + <Dimension value="[0, 28]"/> + </Property> + </Properties> + </Component> + <Component class="javax.swing.JTextField" name="txtDefaultResource2"> + <Properties> + <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor"> + <ResourceString bundle="org/irods/jargon/idrop/desktop/gdrop/Bundle.properties" key="GDropOldLoginDialog.txtDefaultResource2.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/> + </Property> + <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor"> + <Dimension value="[200, 28]"/> + </Property> + </Properties> + </Component> + <Component class="javax.swing.JLabel" name="lblStartingCollection2"> + <Properties> + <Property name="horizontalAlignment" type="int" value="4"/> + <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor"> + <ResourceString bundle="org/irods/jargon/idrop/desktop/gdrop/Bundle.properties" key="GDropOldLoginDialog.lblStartingCollection2.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/> + </Property> + </Properties> + </Component> + <Component class="javax.swing.JTextField" name="txtInitialPath2"> + <Properties> + <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor"> + <ResourceString bundle="org/irods/jargon/idrop/desktop/gdrop/Bundle.properties" key="GDropOldLoginDialog.txtInitialPath2.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/> + </Property> + </Properties> + </Component> + <Component class="javax.swing.JLabel" name="lblAuthorozationScheme2"> + <Properties> + <Property name="horizontalAlignment" type="int" value="4"/> + <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor"> + <ResourceString bundle="org/irods/jargon/idrop/desktop/gdrop/Bundle.properties" key="GDropOldLoginDialog.lblAuthorozationScheme2.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/> + </Property> + </Properties> + </Component> + <Component class="javax.swing.JComboBox" name="cbAuthScheme2"> + <Properties> + <Property name="model" type="javax.swing.ComboBoxModel" editor="org.netbeans.modules.form.editors2.ComboBoxModelEditor"> + <StringArray count="0"/> + </Property> + </Properties> + <Events> + <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="cbAuthScheme2ActionPerformed"/> + <EventHandler event="propertyChange" listener="java.beans.PropertyChangeListener" parameters="java.beans.PropertyChangeEvent" handler="cbAuthScheme2PropertyChange"/> + </Events> + </Component> + <Component class="javax.swing.JLabel" name="lblComment2"> + <Properties> + <Property name="horizontalAlignment" type="int" value="4"/> + <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor"> + <ResourceString bundle="org/irods/jargon/idrop/desktop/gdrop/Bundle.properties" key="GDropOldLoginDialog.lblComment2.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/> + </Property> + </Properties> + </Component> + <Container class="javax.swing.JScrollPane" name="jScrollPane3"> + <Properties> + <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor"> + <Dimension value="[224, 84]"/> + </Property> + </Properties> + <AuxValues> + <AuxValue name="autoScrollPane" type="java.lang.Boolean" value="true"/> + </AuxValues> + + <Layout class="org.netbeans.modules.form.compat2.layouts.support.JScrollPaneSupportLayout"/> + <SubComponents> + <Component class="javax.swing.JTextArea" name="textareaComment2"> + <Properties> + <Property name="columns" type="int" value="20"/> + <Property name="rows" type="int" value="5"/> + </Properties> + </Component> + </SubComponents> + </Container> + <Component class="javax.swing.JTextField" name="txtUsername2"> + <Properties> + <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor"> + <ResourceString bundle="org/irods/jargon/idrop/desktop/gdrop/Bundle.properties" key="GDropOldLoginDialog.txtUsername2.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/> + </Property> + <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor"> + <Dimension value="[200, 28]"/> + </Property> + </Properties> + <Events> + <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="txtUsername2ActionPerformed"/> + </Events> + </Component> + </SubComponents> + </Container> + <Container class="javax.swing.JPanel" name="pnlButtonsPanel"> + <Constraints> + <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout" value="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout$GridBagConstraintsDescription"> + <GridBagConstraints gridX="0" gridY="0" gridWidth="1" gridHeight="1" fill="0" ipadX="0" ipadY="0" insetsTop="0" insetsLeft="0" insetsBottom="0" insetsRight="0" anchor="10" weightX="0.0" weightY="0.0"/> + </Constraint> + </Constraints> + + <Layout> + <DimensionLayout dim="0"> + <Group type="103" groupAlignment="0" attributes="0"> + <Group type="102" alignment="1" attributes="0"> + <EmptySpace max="32767" attributes="0"/> + <Component id="btnCancel" min="-2" max="-2" attributes="0"/> + <EmptySpace max="-2" attributes="0"/> + <Component id="btnOK" min="-2" max="-2" attributes="0"/> + <EmptySpace max="-2" attributes="0"/> + </Group> + </Group> + </DimensionLayout> + <DimensionLayout dim="1"> + <Group type="103" groupAlignment="0" attributes="0"> + <Group type="102" alignment="1" attributes="0"> + <EmptySpace max="32767" attributes="0"/> + <Group type="103" groupAlignment="0" attributes="0"> + <Component id="btnCancel" alignment="0" min="-2" max="-2" attributes="0"/> + <Component id="btnOK" alignment="0" min="-2" max="-2" attributes="0"/> + </Group> + <EmptySpace max="-2" attributes="0"/> + </Group> + </Group> + </DimensionLayout> + </Layout> + <SubComponents> + <Component class="javax.swing.JButton" name="btnCancel"> + <Properties> + <Property name="icon" type="javax.swing.Icon" editor="org.netbeans.modules.form.editors2.IconEditor"> + <Image iconType="3" name="/org/irods/jargon/idrop/desktop/systraygui/images/glyphicons_192_circle_remove.png"/> + </Property> + <Property name="mnemonic" type="int" value="67"/> + <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor"> + <ResourceString bundle="org/irods/jargon/idrop/desktop/gdrop/Bundle.properties" key="GDropOldLoginDialog.btnCancel.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/> + </Property> + <Property name="toolTipText" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor"> + <ResourceString bundle="org/irods/jargon/idrop/desktop/gdrop/Bundle.properties" key="GDropOldLoginDialog.btnCancel.toolTipText" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/> + </Property> + </Properties> + <Events> + <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="btnCancelActionPerformed"/> + </Events> + </Component> + <Component class="javax.swing.JButton" name="btnOK"> + <Properties> + <Property name="icon" type="javax.swing.Icon" editor="org.netbeans.modules.form.editors2.IconEditor"> + <Image iconType="3" name="/org/irods/jargon/idrop/desktop/systraygui/images/glyphicons_193_circle_ok.png"/> + </Property> + <Property name="mnemonic" type="int" value="79"/> + <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor"> + <ResourceString bundle="org/irods/jargon/idrop/desktop/gdrop/Bundle.properties" key="GDropOldLoginDialog.btnOK.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/> + </Property> + <Property name="toolTipText" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor"> + <ResourceString bundle="org/irods/jargon/idrop/desktop/gdrop/Bundle.properties" key="GDropOldLoginDialog.btnOK.toolTipText" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, "{key}")"/> + </Property> + </Properties> + <Events> + <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="btnOKActionPerformed"/> + </Events> + </Component> + </SubComponents> + </Container> + </SubComponents> + <LayoutCode> + <CodeStatement> + <CodeExpression id="1_layout"> + <CodeVariable name="layout" type="4096" declaredType="java.awt.GridBagLayout"/> + <ExpressionOrigin> + <ExpressionProvider type="CodeConstructor"> + <CodeConstructor class="java.awt.GridBagLayout" parameterTypes=""/> + </ExpressionProvider> + </ExpressionOrigin> + </CodeExpression> + <StatementProvider type="CodeExpression"> + <CodeExpression id="1_layout"/> + </StatementProvider> + </CodeStatement> + <CodeStatement> + <CodeExpression id="1_layout"/> + <StatementProvider type="CodeField"> + <CodeField name="columnWidths" class="java.awt.GridBagLayout"/> + </StatementProvider> + <Parameters> + <CodeExpression id="2"> + <ExpressionOrigin> + <Value type="[I" editor="org.netbeans.modules.form.layoutsupport.delegates.GridBagLayoutSupport$IntArrayPropertyEditor"> + <PropertyValue value="[0]"/> + </Value> + </ExpressionOrigin> + </CodeExpression> + </Parameters> + </CodeStatement> + <CodeStatement> + <CodeExpression id="1_layout"/> + <StatementProvider type="CodeField"> + <CodeField name="rowHeights" class="java.awt.GridBagLayout"/> + </StatementProvider> + <Parameters> + <CodeExpression id="3"> + <ExpressionOrigin> + <Value type="[I" editor="org.netbeans.modules.form.layoutsupport.delegates.GridBagLayoutSupport$IntArrayPropertyEditor"> + <PropertyValue value="[0]"/> + </Value> + </ExpressionOrigin> + </CodeExpression> + </Parameters> + </CodeStatement> + <CodeStatement> + <CodeExpression id="4"> + <ExpressionOrigin> + <CodeExpression id="5"> + <ExpressionOrigin> + <ExpressionProvider type="ComponentRef"> + <ComponentRef name="."/> + </ExpressionProvider> + </ExpressionOrigin> + </CodeExpression> + <ExpressionProvider type="CodeMethod"> + <CodeMethod name="getContentPane" class="javax.swing.JDialog" parameterTypes=""/> + </ExpressionProvider> + </ExpressionOrigin> + </CodeExpression> + <StatementProvider type="CodeMethod"> + <CodeMethod name="setLayout" class="java.awt.Container" parameterTypes="java.awt.LayoutManager"/> + </StatementProvider> + <Parameters> + <CodeExpression id="1_layout"/> + </Parameters> + </CodeStatement> + <CodeStatement> + <CodeExpression id="6_gridBagConstraints"> + <CodeVariable name="gridBagConstraints" type="20480" declaredType="java.awt.GridBagConstraints"/> + <ExpressionOrigin> + <ExpressionProvider type="CodeConstructor"> + <CodeConstructor class="java.awt.GridBagConstraints" parameterTypes=""/> + </ExpressionProvider> + </ExpressionOrigin> + </CodeExpression> + <StatementProvider type="CodeExpression"> + <CodeExpression id="6_gridBagConstraints"/> + </StatementProvider> + </CodeStatement> + <CodeStatement> + <CodeExpression id="6_gridBagConstraints"/> + <StatementProvider type="CodeField"> + <CodeField name="gridx" class="java.awt.GridBagConstraints"/> + </StatementProvider> + <Parameters> + <CodeExpression id="7"> + <ExpressionOrigin> + <Value type="int" value="0"/> + </ExpressionOrigin> + </CodeExpression> + </Parameters> + </CodeStatement> + <CodeStatement> + <CodeExpression id="6_gridBagConstraints"/> + <StatementProvider type="CodeField"> + <CodeField name="gridy" class="java.awt.GridBagConstraints"/> + </StatementProvider> + <Parameters> + <CodeExpression id="8"> + <ExpressionOrigin> + <Value type="int" value="0"/> + </ExpressionOrigin> + </CodeExpression> + </Parameters> + </CodeStatement> + <CodeStatement> + <CodeExpression id="4"/> + <StatementProvider type="CodeMethod"> + <CodeMethod name="add" class="java.awt.Container" parameterTypes="java.awt.Component, java.lang.Object"/> + </StatementProvider> + <Parameters> + <CodeExpression id="9_pnlStandardLogin"> + <CodeVariable name="pnlStandardLogin" type="8194" declaredType="javax.swing.JPanel"/> + <ExpressionOrigin> + <ExpressionProvider type="ComponentRef"> + <ComponentRef name="pnlStandardLogin"/> + </ExpressionProvider> + </ExpressionOrigin> + </CodeExpression> + <CodeExpression id="6_gridBagConstraints"/> + </Parameters> + </CodeStatement> + <CodeStatement> + <CodeExpression id="10_gridBagConstraints"> + <CodeVariable name="gridBagConstraints"/> + <ExpressionOrigin> + <ExpressionProvider type="CodeConstructor"> + <CodeConstructor class="java.awt.GridBagConstraints" parameterTypes=""/> + </ExpressionProvider> + </ExpressionOrigin> + </CodeExpression> + <StatementProvider type="CodeExpression"> + <CodeExpression id="10_gridBagConstraints"/> + </StatementProvider> + </CodeStatement> + <CodeStatement> + <CodeExpression id="10_gridBagConstraints"/> + <StatementProvider type="CodeField"> + <CodeField name="gridx" class="java.awt.GridBagConstraints"/> + </StatementProvider> + <Parameters> + <CodeExpression id="11"> + <ExpressionOrigin> + <Value type="int" value="0"/> + </ExpressionOrigin> + </CodeExpression> + </Parameters> + </CodeStatement> + <CodeStatement> + <CodeExpression id="10_gridBagConstraints"/> + <StatementProvider type="CodeField"> + <CodeField name="gridy" class="java.awt.GridBagConstraints"/> + </StatementProvider> + <Parameters> + <CodeExpression id="12"> + <ExpressionOrigin> + <Value type="int" value="0"/> + </ExpressionOrigin> + </CodeExpression> + </Parameters> + </CodeStatement> + <CodeStatement> + <CodeExpression id="4"/> + <StatementProvider type="CodeMethod"> + <CodeMethod name="add" class="java.awt.Container" parameterTypes="java.awt.Component, java.lang.Object"/> + </StatementProvider> + <Parameters> + <CodeExpression id="13_pnlGSILogin"> + <CodeVariable name="pnlGSILogin" type="8194" declaredType="javax.swing.JPanel"/> + <ExpressionOrigin> + <ExpressionProvider type="ComponentRef"> + <ComponentRef name="pnlGSILogin"/> + </ExpressionProvider> + </ExpressionOrigin> + </CodeExpression> + <CodeExpression id="10_gridBagConstraints"/> + </Parameters> + </CodeStatement> + <CodeStatement> + <CodeExpression id="14_gridBagConstraints"> + <CodeVariable name="gridBagConstraints"/> + <ExpressionOrigin> + <ExpressionProvider type="CodeConstructor"> + <CodeConstructor class="java.awt.GridBagConstraints" parameterTypes=""/> + </ExpressionProvider> + </ExpressionOrigin> + </CodeExpression> + <StatementProvider type="CodeExpression"> + <CodeExpression id="14_gridBagConstraints"/> + </StatementProvider> + </CodeStatement> + <CodeStatement> + <CodeExpression id="14_gridBagConstraints"/> + <StatementProvider type="CodeField"> + <CodeField name="gridx" class="java.awt.GridBagConstraints"/> + </StatementProvider> + <Parameters> + <CodeExpression id="15"> + <ExpressionOrigin> + <Value type="int" value="0"/> + </ExpressionOrigin> + </CodeExpression> + </Parameters> + </CodeStatement> + <CodeStatement> + <CodeExpression id="14_gridBagConstraints"/> + <StatementProvider type="CodeField"> + <CodeField name="gridy" class="java.awt.GridBagConstraints"/> + </StatementProvider> + <Parameters> + <CodeExpression id="16"> + <ExpressionOrigin> + <Value type="int" value="0"/> + </ExpressionOrigin> + </CodeExpression> + </Parameters> + </CodeStatement> + <CodeStatement> + <CodeExpression id="4"/> + <StatementProvider type="CodeMethod"> + <CodeMethod name="add" class="java.awt.Container" parameterTypes="java.awt.Component, java.lang.Object"/> + </StatementProvider> + <Parameters> + <CodeExpression id="17_pnlKeyFSLogin"> + <CodeVariable name="pnlKeyFSLogin" type="8194" declaredType="javax.swing.JPanel"/> + <ExpressionOrigin> + <ExpressionProvider type="ComponentRef"> + <ComponentRef name="pnlKeyFSLogin"/> + </ExpressionProvider> + </ExpressionOrigin> + </CodeExpression> + <CodeExpression id="14_gridBagConstraints"/> + </Parameters> + </CodeStatement> + <CodeStatement> + <CodeExpression id="18_gridBagConstraints"> + <CodeVariable name="gridBagConstraints"/> + <ExpressionOrigin> + <ExpressionProvider type="CodeConstructor"> + <CodeConstructor class="java.awt.GridBagConstraints" parameterTypes=""/> + </ExpressionProvider> + </ExpressionOrigin> + </CodeExpression> + <StatementProvider type="CodeExpression"> + <CodeExpression id="18_gridBagConstraints"/> + </StatementProvider> + </CodeStatement> + <CodeStatement> + <CodeExpression id="18_gridBagConstraints"/> + <StatementProvider type="CodeField"> + <CodeField name="gridx" class="java.awt.GridBagConstraints"/> + </StatementProvider> + <Parameters> + <CodeExpression id="19"> + <ExpressionOrigin> + <Value type="int" value="0"/> + </ExpressionOrigin> + </CodeExpression> + </Parameters> + </CodeStatement> + <CodeStatement> + <CodeExpression id="18_gridBagConstraints"/> + <StatementProvider type="CodeField"> + <CodeField name="gridy" class="java.awt.GridBagConstraints"/> + </StatementProvider> + <Parameters> + <CodeExpression id="20"> + <ExpressionOrigin> + <Value type="int" value="0"/> + </ExpressionOrigin> + </CodeExpression> + </Parameters> + </CodeStatement> + <CodeStatement> + <CodeExpression id="4"/> + <StatementProvider type="CodeMethod"> + <CodeMethod name="add" class="java.awt.Container" parameterTypes="java.awt.Component, java.lang.Object"/> + </StatementProvider> + <Parameters> + <CodeExpression id="21_pnlButtonsPanel"> + <CodeVariable name="pnlButtonsPanel" type="8194" declaredType="javax.swing.JPanel"/> + <ExpressionOrigin> + <ExpressionProvider type="ComponentRef"> + <ComponentRef name="pnlButtonsPanel"/> + </ExpressionProvider> + </ExpressionOrigin> + </CodeExpression> + <CodeExpression id="18_gridBagConstraints"/> + </Parameters> + </CodeStatement> + </LayoutCode> +</Form> diff --git a/idrop-swing/src/main/java/org/irods/jargon/idrop/desktop/gdrop/GDropOldLoginDialog.java b/idrop-swing/src/main/java/org/irods/jargon/idrop/desktop/gdrop/GDropOldLoginDialog.java new file mode 100644 index 0000000..d959216 --- /dev/null +++ b/idrop-swing/src/main/java/org/irods/jargon/idrop/desktop/gdrop/GDropOldLoginDialog.java @@ -0,0 +1,936 @@ +/* + * To change this template, choose Tools | Templates + * and open the template in the editor. + */ +package org.irods.jargon.idrop.desktop.gdrop; + +import java.util.logging.Level; +import java.util.logging.Logger; +import javax.swing.DefaultComboBoxModel; +import javax.swing.JOptionPane; +import org.irods.jargon.conveyor.core.ConveyorExecutionException; +import org.irods.jargon.conveyor.core.GridAccountService; +import org.irods.jargon.core.connection.IRODSAccount; +import org.irods.jargon.core.exception.JargonException; +import org.irods.jargon.idrop.desktop.systraygui.IDROPCore; +import org.irods.jargon.transfer.exception.PassPhraseInvalidException; + +/** + * + * @author gosiaw + */ +public class GDropOldLoginDialog extends javax.swing.JDialog { + private GDropGridAccount gridAccount; + private final IDROPCore idropCore; + + private static final int STANDARD = 0; + private static final int GSI = 1; + private static final int KEYFS = 2; + + /** + * Creates new form GDropOldLoginDialog + */ + public GDropOldLoginDialog(java.awt.Frame parent, boolean modal, final IDROPCore idropCore, + final GDropGridAccount gridAccount) { + super(parent, modal); + initComponents(); + this.gridAccount = gridAccount; + this.idropCore = idropCore; + + populateGridAccountInfo(); + initAuthSchemesCombo(); + this.getRootPane().setDefaultButton(btnOK); + + pnlStandardLogin.setVisible(true); + pnlGSILogin.setVisible(false); + pnlKeyFSLogin.setVisible(false); + } + + private void populateGridAccountInfo() { + GDropAuthScheme authScheme = gridAccount.getGDropAuthScheme(); + + String host = gridAccount.getHost(); + if (host != null) { + lblHostAddress.setText(host); + } + + int port = gridAccount.getPort(); + txtPort.setText(String.valueOf(port)); + + String zone = gridAccount.getZone(); + if (zone != null) { + lblZoneValue.setText(zone); + } + + String user = gridAccount.getUserName(); + if (user != null) { + txtUsername.setText(user); + } + + // need to get plain test password + GridAccountService gridAccountService = idropCore.getConveyorService().getGridAccountService(); + IRODSAccount irodAccountForPswd = null; + String pswd = null; + try { + irodAccountForPswd = gridAccountService.irodsAccountForGridAccount(gridAccount); + } catch (ConveyorExecutionException ex) { + Logger.getLogger(GDropOldLoginDialog.class.getName()).log( + Level.SEVERE, null, ex); + JOptionPane.showMessageDialog( + this, + "Could not retrieve stored password for this account.", + "Edit Grid Account", JOptionPane.ERROR_MESSAGE); + } catch (Exception e) { + // Account not found, but this is expected situation in case default grid is created in GridMemoryDialog + // QCG-Data specific feature + Logger.getLogger(GDropOldLoginDialog.class.getName()).log( + Level.INFO, null, e); +// JOptionPane.showMessageDialog( +// this, +// "No user name and password.", +// "Edit Grid Account", JOptionPane.ERROR_MESSAGE); + } + if (irodAccountForPswd != null) { + pswd = irodAccountForPswd.getPassword(); + } + if (pswd != null) { + txtPassword.setText(pswd); + txtVerifyPassword.setText(pswd); + } + + String defResc = gridAccount.getDefaultResource(); + if (defResc != null) { + txtDefaultResource.setText(defResc); + } + + String initPath = gridAccount.getDefaultPath(); + if (initPath != null) { + txtInitialPath.setText(initPath); + } + + String comment = gridAccount.getComment(); + if (comment != null) { + textareaComment.setText(comment); + } + } + + private void initAuthSchemesCombo() { + cbAuthScheme.setModel(new DefaultComboBoxModel(GDropAuthScheme.values())); + // also select correct auth scheme for this grid + cbAuthScheme.setSelectedItem(gridAccount.getGDropAuthScheme()); + } + + /** + * This method is called from within the constructor to initialize the form. + * WARNING: Do NOT modify this code. The content of this method is always + * regenerated by the Form Editor. + */ + @SuppressWarnings("unchecked") + // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents + private void initComponents() { + java.awt.GridBagConstraints gridBagConstraints; + + pnlStandardLogin = new javax.swing.JPanel(); + lblHost = new javax.swing.JLabel(); + lblHostAddress = new javax.swing.JLabel(); + lblPort = new javax.swing.JLabel(); + txtPort = new javax.swing.JTextField(); + lblZone = new javax.swing.JLabel(); + lblZoneValue = new javax.swing.JLabel(); + lblUser = new javax.swing.JLabel(); + lblUserName = new javax.swing.JLabel(); + txtDefaultResource = new javax.swing.JTextField(); + lblStartingCollection = new javax.swing.JLabel(); + txtInitialPath = new javax.swing.JTextField(); + lblAuthorozationScheme = new javax.swing.JLabel(); + cbAuthScheme = new javax.swing.JComboBox(); + lblComment = new javax.swing.JLabel(); + jScrollPane1 = new javax.swing.JScrollPane(); + textareaComment = new javax.swing.JTextArea(); + txtPassword = new javax.swing.JPasswordField(); + lblPassword = new javax.swing.JLabel(); + lblConfirmPassword = new javax.swing.JLabel(); + txtVerifyPassword = new javax.swing.JPasswordField(); + txtUsername = new javax.swing.JTextField(); + pnlGSILogin = new javax.swing.JPanel(); + lblHost1 = new javax.swing.JLabel(); + lblHostAddress1 = new javax.swing.JLabel(); + lblPort1 = new javax.swing.JLabel(); + txtPort1 = new javax.swing.JTextField(); + lblZone1 = new javax.swing.JLabel(); + lblZoneValue1 = new javax.swing.JLabel(); + txtDefaultResource1 = new javax.swing.JTextField(); + lblStartingCollection1 = new javax.swing.JLabel(); + txtInitialPath1 = new javax.swing.JTextField(); + lblAuthorozationScheme1 = new javax.swing.JLabel(); + cbAuthScheme1 = new javax.swing.JComboBox(); + lblComment1 = new javax.swing.JLabel(); + jScrollPane2 = new javax.swing.JScrollPane(); + textareaComment1 = new javax.swing.JTextArea(); + pnlKeyFSLogin = new javax.swing.JPanel(); + lblHost2 = new javax.swing.JLabel(); + lblHostAddress2 = new javax.swing.JLabel(); + lblPort2 = new javax.swing.JLabel(); + txtPort2 = new javax.swing.JTextField(); + lblZone2 = new javax.swing.JLabel(); + lblZoneValue2 = new javax.swing.JLabel(); + txtDefaultResource2 = new javax.swing.JTextField(); + lblStartingCollection2 = new javax.swing.JLabel(); + txtInitialPath2 = new javax.swing.JTextField(); + lblAuthorozationScheme2 = new javax.swing.JLabel(); + cbAuthScheme2 = new javax.swing.JComboBox(); + lblComment2 = new javax.swing.JLabel(); + jScrollPane3 = new javax.swing.JScrollPane(); + textareaComment2 = new javax.swing.JTextArea(); + txtUsername2 = new javax.swing.JTextField(); + pnlButtonsPanel = new javax.swing.JPanel(); + btnCancel = new javax.swing.JButton(); + btnOK = new javax.swing.JButton(); + + setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE); + java.awt.GridBagLayout layout = new java.awt.GridBagLayout(); + layout.columnWidths = new int[] {0}; + layout.rowHeights = new int[] {0}; + getContentPane().setLayout(layout); + + pnlStandardLogin.setBorder(javax.swing.BorderFactory.createEmptyBorder(20, 10, 4, 10)); + pnlStandardLogin.setPreferredSize(new java.awt.Dimension(450, 500)); + + lblHost.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT); + lblHost.setText(org.openide.util.NbBundle.getMessage(GDropOldLoginDialog.class, "GDropOldLoginDialog.lblHost.text")); // NOI18N + + lblHostAddress.setText(org.openide.util.NbBundle.getMessage(GDropOldLoginDialog.class, "GDropOldLoginDialog.lblHostAddress.text")); // NOI18N + lblHostAddress.setPreferredSize(new java.awt.Dimension(0, 28)); + + lblPort.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT); + lblPort.setText(org.openide.util.NbBundle.getMessage(GDropOldLoginDialog.class, "GDropOldLoginDialog.lblPort.text")); // NOI18N + lblPort.setPreferredSize(new java.awt.Dimension(29, 28)); + + txtPort.setText(org.openide.util.NbBundle.getMessage(GDropOldLoginDialog.class, "GDropOldLoginDialog.txtPort.text")); // NOI18N + txtPort.setPreferredSize(new java.awt.Dimension(200, 28)); + + lblZone.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT); + lblZone.setText(org.openide.util.NbBundle.getMessage(GDropOldLoginDialog.class, "GDropOldLoginDialog.lblZone.text")); // NOI18N + + lblZoneValue.setText(org.openide.util.NbBundle.getMessage(GDropOldLoginDialog.class, "GDropOldLoginDialog.lblZoneValue.text")); // NOI18N + lblZoneValue.setPreferredSize(new java.awt.Dimension(0, 28)); + + lblUser.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT); + lblUser.setText(org.openide.util.NbBundle.getMessage(GDropOldLoginDialog.class, "GDropOldLoginDialog.lblUser.text")); // NOI18N + + lblUserName.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT); + lblUserName.setText(org.openide.util.NbBundle.getMessage(GDropOldLoginDialog.class, "GDropOldLoginDialog.lblUserName.text")); // NOI18N + + txtDefaultResource.setText(org.openide.util.NbBundle.getMessage(GDropOldLoginDialog.class, "GDropOldLoginDialog.txtDefaultResource.text")); // NOI18N + txtDefaultResource.setPreferredSize(new java.awt.Dimension(200, 28)); + + lblStartingCollection.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT); + lblStartingCollection.setText(org.openide.util.NbBundle.getMessage(GDropOldLoginDialog.class, "GDropOldLoginDialog.lblStartingCollection.text")); // NOI18N + + txtInitialPath.setText(org.openide.util.NbBundle.getMessage(GDropOldLoginDialog.class, "GDropOldLoginDialog.txtInitialPath.text")); // NOI18N + + lblAuthorozationScheme.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT); + lblAuthorozationScheme.setText(org.openide.util.NbBundle.getMessage(GDropOldLoginDialog.class, "GDropOldLoginDialog.lblAuthorozationScheme.text")); // NOI18N + + cbAuthScheme.addActionListener(new java.awt.event.ActionListener() { + public void actionPerformed(java.awt.event.ActionEvent evt) { + cbAuthSchemeActionPerformed(evt); + } + }); + cbAuthScheme.addPropertyChangeListener(new java.beans.PropertyChangeListener() { + public void propertyChange(java.beans.PropertyChangeEvent evt) { + cbAuthSchemePropertyChange(evt); + } + }); + + lblComment.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT); + lblComment.setText(org.openide.util.NbBundle.getMessage(GDropOldLoginDialog.class, "GDropOldLoginDialog.lblComment.text")); // NOI18N + + jScrollPane1.setPreferredSize(new java.awt.Dimension(224, 84)); + + textareaComment.setColumns(20); + textareaComment.setRows(5); + jScrollPane1.setViewportView(textareaComment); + + txtPassword.setText(org.openide.util.NbBundle.getMessage(GDropOldLoginDialog.class, "GDropOldLoginDialog.txtPassword.text")); // NOI18N + + lblPassword.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT); + lblPassword.setText(org.openide.util.NbBundle.getMessage(GDropOldLoginDialog.class, "GDropOldLoginDialog.lblPassword.text")); // NOI18N + + lblConfirmPassword.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT); + lblConfirmPassword.setText(org.openide.util.NbBundle.getMessage(GDropOldLoginDialog.class, "GDropOldLoginDialog.lblConfirmPassword.text")); // NOI18N + + txtVerifyPassword.setText(org.openide.util.NbBundle.getMessage(GDropOldLoginDialog.class, "GDropOldLoginDialog.txtVerifyPassword.text")); // NOI18N + + txtUsername.setText(org.openide.util.NbBundle.getMessage(GDropOldLoginDialog.class, "GDropOldLoginDialog.txtUsername.text")); // NOI18N + txtUsername.setPreferredSize(new java.awt.Dimension(200, 28)); + txtUsername.addActionListener(new java.awt.event.ActionListener() { + public void actionPerformed(java.awt.event.ActionEvent evt) { + txtUsernameActionPerformed(evt); + } + }); + + org.jdesktop.layout.GroupLayout pnlStandardLoginLayout = new org.jdesktop.layout.GroupLayout(pnlStandardLogin); + pnlStandardLogin.setLayout(pnlStandardLoginLayout); + pnlStandardLoginLayout.setHorizontalGroup( + pnlStandardLoginLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) + .add(pnlStandardLoginLayout.createSequentialGroup() + .add(pnlStandardLoginLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) + .add(org.jdesktop.layout.GroupLayout.TRAILING, pnlStandardLoginLayout.createSequentialGroup() + .add(40, 143, Short.MAX_VALUE) + .add(pnlStandardLoginLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) + .add(pnlStandardLoginLayout.createSequentialGroup() + .add(1, 1, 1) + .add(lblHost)) + .add(pnlStandardLoginLayout.createSequentialGroup() + .add(10, 10, 10) + .add(lblPort, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) + .add(lblZone))) + .add(pnlStandardLoginLayout.createSequentialGroup() + .add(34, 34, 34) + .add(lblConfirmPassword)) + .add(pnlStandardLoginLayout.createSequentialGroup() + .add(41, 41, 41) + .add(lblUserName)) + .add(pnlStandardLoginLayout.createSequentialGroup() + .add(31, 31, 31) + .add(lblStartingCollection)) + .add(pnlStandardLoginLayout.createSequentialGroup() + .add(10, 10, 10) + .add(lblAuthorozationScheme)) + .add(pnlStandardLoginLayout.createSequentialGroup() + .add(87, 87, 87) + .add(lblComment)) + .add(pnlStandardLoginLayout.createSequentialGroup() + .add(89, 89, 89) + .add(lblPassword)) + .add(pnlStandardLoginLayout.createSequentialGroup() + .add(116, 116, 116) + .add(lblUser))) + .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) + .add(pnlStandardLoginLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) + .add(org.jdesktop.layout.GroupLayout.TRAILING, jScrollPane1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 236, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) + .add(org.jdesktop.layout.GroupLayout.TRAILING, cbAuthScheme, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 236, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) + .add(org.jdesktop.layout.GroupLayout.TRAILING, txtInitialPath, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 236, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) + .add(org.jdesktop.layout.GroupLayout.TRAILING, txtDefaultResource, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 236, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) + .add(org.jdesktop.layout.GroupLayout.TRAILING, txtVerifyPassword, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 236, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) + .add(org.jdesktop.layout.GroupLayout.TRAILING, txtPassword, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 236, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) + .add(org.jdesktop.layout.GroupLayout.TRAILING, txtUsername, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 167, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) + .add(org.jdesktop.layout.GroupLayout.TRAILING, lblZoneValue, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 230, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) + .add(org.jdesktop.layout.GroupLayout.TRAILING, txtPort, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 236, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) + .add(org.jdesktop.layout.GroupLayout.TRAILING, lblHostAddress, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 221, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) + .addContainerGap()) + ); + + pnlStandardLoginLayout.linkSize(new java.awt.Component[] {txtPassword, txtUsername}, org.jdesktop.layout.GroupLayout.HORIZONTAL); + + pnlStandardLoginLayout.setVerticalGroup( + pnlStandardLoginLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) + .add(pnlStandardLoginLayout.createSequentialGroup() + .add(pnlStandardLoginLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING) + .add(pnlStandardLoginLayout.createSequentialGroup() + .add(lblHost) + .add(pnlStandardLoginLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) + .add(pnlStandardLoginLayout.createSequentialGroup() + .add(6, 6, 6) + .add(lblPort, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 16, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) + .add(txtPort, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))) + .add(org.jdesktop.layout.GroupLayout.LEADING, pnlStandardLoginLayout.createSequentialGroup() + .add(lblHostAddress, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) + .add(23, 23, 23))) + .add(pnlStandardLoginLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) + .add(lblZone) + .add(org.jdesktop.layout.GroupLayout.TRAILING, pnlStandardLoginLayout.createSequentialGroup() + .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) + .add(lblZoneValue, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))) + .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) + .add(pnlStandardLoginLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) + .add(lblUser) + .add(txtUsername, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) + .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) + .add(pnlStandardLoginLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) + .add(pnlStandardLoginLayout.createSequentialGroup() + .add(6, 6, 6) + .add(lblPassword)) + .add(txtPassword, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) + .add(pnlStandardLoginLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) + .add(pnlStandardLoginLayout.createSequentialGroup() + .add(6, 6, 6) + .add(lblConfirmPassword)) + .add(txtVerifyPassword, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) + .add(pnlStandardLoginLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) + .add(pnlStandardLoginLayout.createSequentialGroup() + .add(6, 6, 6) + .add(lblUserName)) + .add(txtDefaultResource, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) + .add(pnlStandardLoginLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) + .add(pnlStandardLoginLayout.createSequentialGroup() + .add(6, 6, 6) + .add(lblStartingCollection)) + .add(txtInitialPath, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) + .add(pnlStandardLoginLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) + .add(pnlStandardLoginLayout.createSequentialGroup() + .add(5, 5, 5) + .add(lblAuthorozationScheme)) + .add(cbAuthScheme, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) + .add(pnlStandardLoginLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) + .add(lblComment) + .add(jScrollPane1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 39, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))) + ); + + gridBagConstraints = new java.awt.GridBagConstraints(); + gridBagConstraints.gridx = 0; + gridBagConstraints.gridy = 0; + getContentPane().add(pnlStandardLogin, gridBagConstraints); + + pnlGSILogin.setBorder(javax.swing.BorderFactory.createEmptyBorder(20, 10, 4, 10)); + pnlGSILogin.setPreferredSize(new java.awt.Dimension(450, 500)); + + lblHost1.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT); + lblHost1.setText(org.openide.util.NbBundle.getMessage(GDropOldLoginDialog.class, "GDropOldLoginDialog.lblHost1.text")); // NOI18N + + lblHostAddress1.setText(org.openide.util.NbBundle.getMessage(GDropOldLoginDialog.class, "GDropOldLoginDialog.lblHostAddress1.text")); // NOI18N + lblHostAddress1.setPreferredSize(new java.awt.Dimension(0, 28)); + + lblPort1.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT); + lblPort1.setText(org.openide.util.NbBundle.getMessage(GDropOldLoginDialog.class, "GDropOldLoginDialog.lblPort1.text")); // NOI18N + lblPort1.setPreferredSize(new java.awt.Dimension(29, 28)); + + txtPort1.setText(org.openide.util.NbBundle.getMessage(GDropOldLoginDialog.class, "GDropOldLoginDialog.txtPort1.text")); // NOI18N + txtPort1.setPreferredSize(new java.awt.Dimension(200, 28)); + + lblZone1.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT); + lblZone1.setText(org.openide.util.NbBundle.getMessage(GDropOldLoginDialog.class, "GDropOldLoginDialog.lblZone1.text")); // NOI18N + + lblZoneValue1.setText(org.openide.util.NbBundle.getMessage(GDropOldLoginDialog.class, "GDropOldLoginDialog.lblZoneValue1.text")); // NOI18N + lblZoneValue1.setPreferredSize(new java.awt.Dimension(0, 28)); + + txtDefaultResource1.setText(org.openide.util.NbBundle.getMessage(GDropOldLoginDialog.class, "GDropOldLoginDialog.txtDefaultResource1.text")); // NOI18N + txtDefaultResource1.setPreferredSize(new java.awt.Dimension(200, 28)); + + lblStartingCollection1.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT); + lblStartingCollection1.setText(org.openide.util.NbBundle.getMessage(GDropOldLoginDialog.class, "GDropOldLoginDialog.lblStartingCollection1.text")); // NOI18N + + txtInitialPath1.setText(org.openide.util.NbBundle.getMessage(GDropOldLoginDialog.class, "GDropOldLoginDialog.txtInitialPath1.text")); // NOI18N + + lblAuthorozationScheme1.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT); + lblAuthorozationScheme1.setText(org.openide.util.NbBundle.getMessage(GDropOldLoginDialog.class, "GDropOldLoginDialog.lblAuthorozationScheme1.text")); // NOI18N + + cbAuthScheme1.addActionListener(new java.awt.event.ActionListener() { + public void actionPerformed(java.awt.event.ActionEvent evt) { + cbAuthScheme1ActionPerformed(evt); + } + }); + cbAuthScheme1.addPropertyChangeListener(new java.beans.PropertyChangeListener() { + public void propertyChange(java.beans.PropertyChangeEvent evt) { + cbAuthScheme1PropertyChange(evt); + } + }); + + lblComment1.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT); + lblComment1.setText(org.openide.util.NbBundle.getMessage(GDropOldLoginDialog.class, "GDropOldLoginDialog.lblComment1.text")); // NOI18N + + jScrollPane2.setPreferredSize(new java.awt.Dimension(224, 84)); + + textareaComment1.setColumns(20); + textareaComment1.setRows(5); + jScrollPane2.setViewportView(textareaComment1); + + org.jdesktop.layout.GroupLayout pnlGSILoginLayout = new org.jdesktop.layout.GroupLayout(pnlGSILogin); + pnlGSILogin.setLayout(pnlGSILoginLayout); + pnlGSILoginLayout.setHorizontalGroup( + pnlGSILoginLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) + .add(pnlGSILoginLayout.createSequentialGroup() + .add(pnlGSILoginLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) + .add(org.jdesktop.layout.GroupLayout.TRAILING, pnlGSILoginLayout.createSequentialGroup() + .add(40, 143, Short.MAX_VALUE) + .add(pnlGSILoginLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) + .add(pnlGSILoginLayout.createSequentialGroup() + .add(1, 1, 1) + .add(lblHost1)) + .add(pnlGSILoginLayout.createSequentialGroup() + .add(10, 10, 10) + .add(lblPort1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) + .add(lblZone1))) + .add(pnlGSILoginLayout.createSequentialGroup() + .add(31, 31, 31) + .add(lblStartingCollection1)) + .add(pnlGSILoginLayout.createSequentialGroup() + .add(10, 10, 10) + .add(lblAuthorozationScheme1)) + .add(pnlGSILoginLayout.createSequentialGroup() + .add(87, 87, 87) + .add(lblComment1))) + .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) + .add(pnlGSILoginLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) + .add(org.jdesktop.layout.GroupLayout.TRAILING, jScrollPane2, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 236, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) + .add(org.jdesktop.layout.GroupLayout.TRAILING, cbAuthScheme1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 236, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) + .add(org.jdesktop.layout.GroupLayout.TRAILING, txtInitialPath1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 236, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) + .add(org.jdesktop.layout.GroupLayout.TRAILING, txtDefaultResource1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 236, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) + .add(org.jdesktop.layout.GroupLayout.TRAILING, lblZoneValue1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 230, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) + .add(org.jdesktop.layout.GroupLayout.TRAILING, txtPort1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 236, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) + .add(org.jdesktop.layout.GroupLayout.TRAILING, lblHostAddress1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 221, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) + .addContainerGap()) + ); + pnlGSILoginLayout.setVerticalGroup( + pnlGSILoginLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) + .add(pnlGSILoginLayout.createSequentialGroup() + .add(pnlGSILoginLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING) + .add(pnlGSILoginLayout.createSequentialGroup() + .add(lblHost1) + .add(pnlGSILoginLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) + .add(pnlGSILoginLayout.createSequentialGroup() + .add(6, 6, 6) + .add(lblPort1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 16, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) + .add(txtPort1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))) + .add(org.jdesktop.layout.GroupLayout.LEADING, pnlGSILoginLayout.createSequentialGroup() + .add(lblHostAddress1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) + .add(23, 23, 23))) + .add(pnlGSILoginLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) + .add(lblZone1) + .add(org.jdesktop.layout.GroupLayout.TRAILING, pnlGSILoginLayout.createSequentialGroup() + .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) + .add(lblZoneValue1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))) + .add(96, 96, 96) + .add(txtDefaultResource1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) + .add(pnlGSILoginLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) + .add(pnlGSILoginLayout.createSequentialGroup() + .add(6, 6, 6) + .add(lblStartingCollection1)) + .add(txtInitialPath1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) + .add(pnlGSILoginLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) + .add(pnlGSILoginLayout.createSequentialGroup() + .add(5, 5, 5) + .add(lblAuthorozationScheme1)) + .add(cbAuthScheme1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) + .add(pnlGSILoginLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) + .add(lblComment1) + .add(jScrollPane2, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 39, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))) + ); + + gridBagConstraints = new java.awt.GridBagConstraints(); + gridBagConstraints.gridx = 0; + gridBagConstraints.gridy = 0; + getContentPane().add(pnlGSILogin, gridBagConstraints); + + pnlKeyFSLogin.setBorder(javax.swing.BorderFactory.createEmptyBorder(20, 10, 4, 10)); + pnlKeyFSLogin.setPreferredSize(new java.awt.Dimension(450, 500)); + + lblHost2.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT); + lblHost2.setText(org.openide.util.NbBundle.getMessage(GDropOldLoginDialog.class, "GDropOldLoginDialog.lblHost2.text")); // NOI18N + + lblHostAddress2.setText(org.openide.util.NbBundle.getMessage(GDropOldLoginDialog.class, "GDropOldLoginDialog.lblHostAddress2.text")); // NOI18N + lblHostAddress2.setPreferredSize(new java.awt.Dimension(0, 28)); + + lblPort2.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT); + lblPort2.setText(org.openide.util.NbBundle.getMessage(GDropOldLoginDialog.class, "GDropOldLoginDialog.lblPort2.text")); // NOI18N + lblPort2.setPreferredSize(new java.awt.Dimension(29, 28)); + + txtPort2.setText(org.openide.util.NbBundle.getMessage(GDropOldLoginDialog.class, "GDropOldLoginDialog.txtPort2.text")); // NOI18N + txtPort2.setPreferredSize(new java.awt.Dimension(200, 28)); + + lblZone2.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT); + lblZone2.setText(org.openide.util.NbBundle.getMessage(GDropOldLoginDialog.class, "GDropOldLoginDialog.lblZone2.text")); // NOI18N + + lblZoneValue2.setText(org.openide.util.NbBundle.getMessage(GDropOldLoginDialog.class, "GDropOldLoginDialog.lblZoneValue2.text")); // NOI18N + lblZoneValue2.setPreferredSize(new java.awt.Dimension(0, 28)); + + txtDefaultResource2.setText(org.openide.util.NbBundle.getMessage(GDropOldLoginDialog.class, "GDropOldLoginDialog.txtDefaultResource2.text")); // NOI18N + txtDefaultResource2.setPreferredSize(new java.awt.Dimension(200, 28)); + + lblStartingCollection2.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT); + lblStartingCollection2.setText(org.openide.util.NbBundle.getMessage(GDropOldLoginDialog.class, "GDropOldLoginDialog.lblStartingCollection2.text")); // NOI18N + + txtInitialPath2.setText(org.openide.util.NbBundle.getMessage(GDropOldLoginDialog.class, "GDropOldLoginDialog.txtInitialPath2.text")); // NOI18N + + lblAuthorozationScheme2.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT); + lblAuthorozationScheme2.setText(org.openide.util.NbBundle.getMessage(GDropOldLoginDialog.class, "GDropOldLoginDialog.lblAuthorozationScheme2.text")); // NOI18N + + cbAuthScheme2.addActionListener(new java.awt.event.ActionListener() { + public void actionPerformed(java.awt.event.ActionEvent evt) { + cbAuthScheme2ActionPerformed(evt); + } + }); + cbAuthScheme2.addPropertyChangeListener(new java.beans.PropertyChangeListener() { + public void propertyChange(java.beans.PropertyChangeEvent evt) { + cbAuthScheme2PropertyChange(evt); + } + }); + + lblComment2.setHorizontalAlignment(javax.swing.SwingConstants.RIGHT); + lblComment2.setText(org.openide.util.NbBundle.getMessage(GDropOldLoginDialog.class, "GDropOldLoginDialog.lblComment2.text")); // NOI18N + + jScrollPane3.setPreferredSize(new java.awt.Dimension(224, 84)); + + textareaComment2.setColumns(20); + textareaComment2.setRows(5); + jScrollPane3.setViewportView(textareaComment2); + + txtUsername2.setText(org.openide.util.NbBundle.getMessage(GDropOldLoginDialog.class, "GDropOldLoginDialog.txtUsername2.text")); // NOI18N + txtUsername2.setPreferredSize(new java.awt.Dimension(200, 28)); + txtUsername2.addActionListener(new java.awt.event.ActionListener() { + public void actionPerformed(java.awt.event.ActionEvent evt) { + txtUsername2ActionPerformed(evt); + } + }); + + org.jdesktop.layout.GroupLayout pnlKeyFSLoginLayout = new org.jdesktop.layout.GroupLayout(pnlKeyFSLogin); + pnlKeyFSLogin.setLayout(pnlKeyFSLoginLayout); + pnlKeyFSLoginLayout.setHorizontalGroup( + pnlKeyFSLoginLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) + .add(pnlKeyFSLoginLayout.createSequentialGroup() + .add(pnlKeyFSLoginLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) + .add(org.jdesktop.layout.GroupLayout.TRAILING, pnlKeyFSLoginLayout.createSequentialGroup() + .add(40, 143, Short.MAX_VALUE) + .add(pnlKeyFSLoginLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) + .add(pnlKeyFSLoginLayout.createSequentialGroup() + .add(1, 1, 1) + .add(lblHost2)) + .add(pnlKeyFSLoginLayout.createSequentialGroup() + .add(10, 10, 10) + .add(lblPort2, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) + .add(lblZone2))) + .add(pnlKeyFSLoginLayout.createSequentialGroup() + .add(31, 31, 31) + .add(lblStartingCollection2)) + .add(pnlKeyFSLoginLayout.createSequentialGroup() + .add(10, 10, 10) + .add(lblAuthorozationScheme2)) + .add(pnlKeyFSLoginLayout.createSequentialGroup() + .add(87, 87, 87) + .add(lblComment2))) + .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) + .add(pnlKeyFSLoginLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) + .add(org.jdesktop.layout.GroupLayout.TRAILING, jScrollPane3, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 236, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) + .add(org.jdesktop.layout.GroupLayout.TRAILING, cbAuthScheme2, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 236, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) + .add(org.jdesktop.layout.GroupLayout.TRAILING, txtInitialPath2, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 236, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) + .add(org.jdesktop.layout.GroupLayout.TRAILING, txtDefaultResource2, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 236, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) + .add(org.jdesktop.layout.GroupLayout.TRAILING, txtUsername2, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 167, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) + .add(org.jdesktop.layout.GroupLayout.TRAILING, lblZoneValue2, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 230, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) + .add(org.jdesktop.layout.GroupLayout.TRAILING, txtPort2, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 236, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) + .add(org.jdesktop.layout.GroupLayout.TRAILING, lblHostAddress2, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 221, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) + .addContainerGap()) + ); + pnlKeyFSLoginLayout.setVerticalGroup( + pnlKeyFSLoginLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) + .add(pnlKeyFSLoginLayout.createSequentialGroup() + .add(pnlKeyFSLoginLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING) + .add(pnlKeyFSLoginLayout.createSequentialGroup() + .add(lblHost2) + .add(pnlKeyFSLoginLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) + .add(pnlKeyFSLoginLayout.createSequentialGroup() + .add(6, 6, 6) + .add(lblPort2, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 16, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) + .add(txtPort2, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))) + .add(org.jdesktop.layout.GroupLayout.LEADING, pnlKeyFSLoginLayout.createSequentialGroup() + .add(lblHostAddress2, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) + .add(23, 23, 23))) + .add(pnlKeyFSLoginLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) + .add(lblZone2) + .add(org.jdesktop.layout.GroupLayout.TRAILING, pnlKeyFSLoginLayout.createSequentialGroup() + .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) + .add(lblZoneValue2, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))) + .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) + .add(txtUsername2, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) + .add(62, 62, 62) + .add(txtDefaultResource2, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE) + .add(pnlKeyFSLoginLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) + .add(pnlKeyFSLoginLayout.createSequentialGroup() + .add(6, 6, 6) + .add(lblStartingCollection2)) + .add(txtInitialPath2, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) + .add(pnlKeyFSLoginLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) + .add(pnlKeyFSLoginLayout.createSequentialGroup() + .add(5, 5, 5) + .add(lblAuthorozationScheme2)) + .add(cbAuthScheme2, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)) + .add(pnlKeyFSLoginLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) + .add(lblComment2) + .add(jScrollPane3, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 39, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))) + ); + + gridBagConstraints = new java.awt.GridBagConstraints(); + gridBagConstraints.gridx = 0; + gridBagConstraints.gridy = 0; + getContentPane().add(pnlKeyFSLogin, gridBagConstraints); + + btnCancel.setIcon(new javax.swing.ImageIcon(getClass().getResource("/org/irods/jargon/idrop/desktop/systraygui/images/glyphicons_192_circle_remove.png"))); // NOI18N + btnCancel.setMnemonic('C'); + btnCancel.setText(org.openide.util.NbBundle.getMessage(GDropOldLoginDialog.class, "GDropOldLoginDialog.btnCancel.text")); // NOI18N + btnCancel.setToolTipText(org.openide.util.NbBundle.getMessage(GDropOldLoginDialog.class, "GDropOldLoginDialog.btnCancel.toolTipText")); // NOI18N + btnCancel.addActionListener(new java.awt.event.ActionListener() { + public void actionPerformed(java.awt.event.ActionEvent evt) { + btnCancelActionPerformed(evt); + } + }); + + btnOK.setIcon(new javax.swing.ImageIcon(getClass().getResource("/org/irods/jargon/idrop/desktop/systraygui/images/glyphicons_193_circle_ok.png"))); // NOI18N + btnOK.setMnemonic('O'); + btnOK.setText(org.openide.util.NbBundle.getMessage(GDropOldLoginDialog.class, "GDropOldLoginDialog.btnOK.text")); // NOI18N + btnOK.setToolTipText(org.openide.util.NbBundle.getMessage(GDropOldLoginDialog.class, "GDropOldLoginDialog.btnOK.toolTipText")); // NOI18N + btnOK.addActionListener(new java.awt.event.ActionListener() { + public void actionPerformed(java.awt.event.ActionEvent evt) { + btnOKActionPerformed(evt); + } + }); + + org.jdesktop.layout.GroupLayout pnlButtonsPanelLayout = new org.jdesktop.layout.GroupLayout(pnlButtonsPanel); + pnlButtonsPanel.setLayout(pnlButtonsPanelLayout); + pnlButtonsPanelLayout.setHorizontalGroup( + pnlButtonsPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) + .add(org.jdesktop.layout.GroupLayout.TRAILING, pnlButtonsPanelLayout.createSequentialGroup() + .addContainerGap(org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) + .add(btnCancel) + .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED) + .add(btnOK) + .addContainerGap()) + ); + pnlButtonsPanelLayout.setVerticalGroup( + pnlButtonsPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) + .add(org.jdesktop.layout.GroupLayout.TRAILING, pnlButtonsPanelLayout.createSequentialGroup() + .addContainerGap(org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE) + .add(pnlButtonsPanelLayout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING) + .add(btnCancel) + .add(btnOK)) + .addContainerGap()) + ); + + gridBagConstraints = new java.awt.GridBagConstraints(); + gridBagConstraints.gridx = 0; + gridBagConstraints.gridy = 0; + getContentPane().add(pnlButtonsPanel, gridBagConstraints); + + pack(); + }// </editor-fold>//GEN-END:initComponents + + private void btnCancelActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnCancelActionPerformed + this.dispose(); + }//GEN-LAST:event_btnCancelActionPerformed + + private void btnOKActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btnOKActionPerformed + + GDropIRODSAccount gridInfo = createIRODSAccountFromForm(); + if (gridInfo != null) { + GridAccountService gridAccountService = idropCore.getConveyorService().getGridAccountService(); + + // now add authorization scheme to gridaccount + GDropAuthScheme scheme = (GDropAuthScheme) cbAuthScheme.getSelectedItem(); + if ((scheme != null) && (!(scheme.getTextValue().isEmpty()))) { + gridInfo.setGDropAuthenticationScheme(scheme); + } + + // now see if there is a comment to add to gridaccount + String comment = ""; + if ((textareaComment.getText() != null) || (!textareaComment.getText().isEmpty())) { + comment = textareaComment.getText().trim(); + } + + try { + gridAccountService.addOrUpdateGridAccountBasedOnIRODSAccount(gridInfo); + + // use this when Mike adds comment to addOrUpdateGridAccountBasedOnIRODSAccount() + // gridAccountService.addOrUpdateGridAccountBasedOnIRODSAccount(gridInfo, comment); + } catch (PassPhraseInvalidException ex) { + gridInfo = null; + Logger.getLogger(GDropOldLoginDialog.class.getName()).log( + Level.SEVERE, null, ex); + JOptionPane.showMessageDialog( + this, + "Update of grid account failed. Pass phrase is invalid.", + "Edit Grid Account", JOptionPane.ERROR_MESSAGE); + } catch (ConveyorExecutionException ex) { + gridInfo = null; + Logger.getLogger(GDropOldLoginDialog.class.getName()).log( + Level.SEVERE, null, ex); + } + + this.dispose(); + } + }//GEN-LAST:event_btnOKActionPerformed + + private void txtUsernameActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_txtUsernameActionPerformed + // TODO add your handling code here: + }//GEN-LAST:event_txtUsernameActionPerformed + + private void cbAuthSchemePropertyChange(java.beans.PropertyChangeEvent evt) {//GEN-FIRST:event_cbAuthSchemePropertyChange + // TODO add your handling code here: + }//GEN-LAST:event_cbAuthSchemePropertyChange + + private void cbAuthSchemeActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_cbAuthSchemeActionPerformed + // TODO add your handling code here: + int index = cbAuthScheme.getSelectedIndex(); + switch (index) { + case STANDARD: + pnlStandardLogin.setVisible(true); + pnlGSILogin.setVisible(false); + pnlKeyFSLogin.setVisible(false); + break; + case GSI: + pnlStandardLogin.setVisible(false); + pnlGSILogin.setVisible(true); + pnlKeyFSLogin.setVisible(false); + break; + case KEYFS: + pnlStandardLogin.setVisible(false); + pnlGSILogin.setVisible(false); + pnlKeyFSLogin.setVisible(true); + break; + } + }//GEN-LAST:event_cbAuthSchemeActionPerformed + + private void cbAuthScheme1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_cbAuthScheme1ActionPerformed + // TODO add your handling code here: + }//GEN-LAST:event_cbAuthScheme1ActionPerformed + + private void cbAuthScheme1PropertyChange(java.beans.PropertyChangeEvent evt) {//GEN-FIRST:event_cbAuthScheme1PropertyChange + // TODO add your handling code here: + }//GEN-LAST:event_cbAuthScheme1PropertyChange + + private void cbAuthScheme2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_cbAuthScheme2ActionPerformed + // TODO add your handling code here: + }//GEN-LAST:event_cbAuthScheme2ActionPerformed + + private void cbAuthScheme2PropertyChange(java.beans.PropertyChangeEvent evt) {//GEN-FIRST:event_cbAuthScheme2PropertyChange + // TODO add your handling code here: + }//GEN-LAST:event_cbAuthScheme2PropertyChange + + private void txtUsername2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_txtUsername2ActionPerformed + // TODO add your handling code here: + }//GEN-LAST:event_txtUsername2ActionPerformed + + + private GDropIRODSAccount createIRODSAccountFromForm() { + GDropIRODSAccount acct = null; + + String host = this.gridAccount.getHost(); + String strPort = txtPort.getText().trim(); + int port=0; + if ((strPort != null) && (!strPort.isEmpty())) { + port = Integer.valueOf(strPort).intValue(); + } + String zone = this.gridAccount.getZone(); +// String user = this.gridAccount.getUserName(); + String user = txtUsername.getText().trim(); + String password = txtPassword.getText().trim(); + String verifyPassword = txtVerifyPassword.getText().trim(); + String defaultResc = txtDefaultResource.getText().trim(); + String initialPath = txtInitialPath.getText().trim(); + if ((txtInitialPath.getText() == null) || (txtInitialPath.getText().isEmpty())) { + StringBuilder homeBuilder = new StringBuilder(); + homeBuilder.append("/"); + homeBuilder.append(zone); + homeBuilder.append("/home/"); + homeBuilder.append(user); + initialPath = homeBuilder.toString(); + } + + // check to make sure passwords match + if (! password.equals(verifyPassword)) { + JOptionPane.showMessageDialog( + this, + "Passwords do not match. Please try again.", + "Edit Grid Account", JOptionPane.ERROR_MESSAGE); + return acct; + } + + GridAccountService gridAccountService = idropCore.getConveyorService().getGridAccountService(); + + // need to do this to retrieve plain text password + IRODSAccount irodAccountForPswd = null; + + // not needed if collecting password from form +// try { +// irodAccountForPswd = gridAccountService.irodsAccountForGridAccount(gridAccount); +// } catch (ConveyorExecutionException ex) { +// Logger.getLogger(EditGridInfoDialog.class.getName()).log( +// Level.SEVERE, null, ex); +// JOptionPane.showMessageDialog( +// this, +// "Update of grid account failed. Could not store password.", +// "Edit Grid Account", JOptionPane.ERROR_MESSAGE); +// } + + try { + acct = GDropIRODSAccount.instance(host, port, user, password, initialPath, zone, defaultResc); + } catch (JargonException ex) { + JOptionPane.showMessageDialog( + this, + "Please enter grid account information. Host, port, zone, and user name are required.", + "Edit Grid Account", JOptionPane.ERROR_MESSAGE); + return acct; + } catch (IllegalArgumentException ex) { + JOptionPane.showMessageDialog( + this, + "Please enter grid account information. Host, port, zone, and user name are required.", + "Edit Grid Account", JOptionPane.ERROR_MESSAGE); + return acct; + } + + // now add authorization scheme to gridaccount + GDropAuthScheme scheme = (GDropAuthScheme) cbAuthScheme.getSelectedItem(); + if (scheme != null) { + acct.setGDropAuthenticationScheme(scheme); + } + + return acct; + } + + // Variables declaration - do not modify//GEN-BEGIN:variables + private javax.swing.JButton btnCancel; + private javax.swing.JButton btnOK; + private javax.swing.JComboBox cbAuthScheme; + private javax.swing.JComboBox cbAuthScheme1; + private javax.swing.JComboBox cbAuthScheme2; + private javax.swing.JScrollPane jScrollPane1; + private javax.swing.JScrollPane jScrollPane2; + private javax.swing.JScrollPane jScrollPane3; + private javax.swing.JLabel lblAuthorozationScheme; + private javax.swing.JLabel lblAuthorozationScheme1; + private javax.swing.JLabel lblAuthorozationScheme2; + private javax.swing.JLabel lblComment; + private javax.swing.JLabel lblComment1; + private javax.swing.JLabel lblComment2; + private javax.swing.JLabel lblConfirmPassword; + private javax.swing.JLabel lblHost; + private javax.swing.JLabel lblHost1; + private javax.swing.JLabel lblHost2; + private javax.swing.JLabel lblHostAddress; + private javax.swing.JLabel lblHostAddress1; + private javax.swing.JLabel lblHostAddress2; + private javax.swing.JLabel lblPassword; + private javax.swing.JLabel lblPort; + private javax.swing.JLabel lblPort1; + private javax.swing.JLabel lblPort2; + private javax.swing.JLabel lblStartingCollection; + private javax.swing.JLabel lblStartingCollection1; + private javax.swing.JLabel lblStartingCollection2; + private javax.swing.JLabel lblUser; + private javax.swing.JLabel lblUserName; + private javax.swing.JLabel lblZone; + private javax.swing.JLabel lblZone1; + private javax.swing.JLabel lblZone2; + private javax.swing.JLabel lblZoneValue; + private javax.swing.JLabel lblZoneValue1; + private javax.swing.JLabel lblZoneValue2; + private javax.swing.JPanel pnlButtonsPanel; + private javax.swing.JPanel pnlGSILogin; + private javax.swing.JPanel pnlKeyFSLogin; + private javax.swing.JPanel pnlStandardLogin; + private javax.swing.JTextArea textareaComment; + private javax.swing.JTextArea textareaComment1; + private javax.swing.JTextArea textareaComment2; + private javax.swing.JTextField txtDefaultResource; + private javax.swing.JTextField txtDefaultResource1; + private javax.swing.JTextField txtDefaultResource2; + private javax.swing.JTextField txtInitialPath; + private javax.swing.JTextField txtInitialPath1; + private javax.swing.JTextField txtInitialPath2; + private javax.swing.JPasswordField txtPassword; + private javax.swing.JTextField txtPort; + private javax.swing.JTextField txtPort1; + private javax.swing.JTextField txtPort2; + private javax.swing.JTextField txtUsername; + private javax.swing.JTextField txtUsername2; + private javax.swing.JPasswordField txtVerifyPassword; + // End of variables declaration//GEN-END:variables +} diff --git a/idrop-swing/src/main/resources/org/irods/jargon/idrop/desktop/gdrop/Bundle.properties b/idrop-swing/src/main/resources/org/irods/jargon/idrop/desktop/gdrop/Bundle.properties index f669673..8c40c83 100644 --- a/idrop-swing/src/main/resources/org/irods/jargon/idrop/desktop/gdrop/Bundle.properties +++ b/idrop-swing/src/main/resources/org/irods/jargon/idrop/desktop/gdrop/Bundle.properties @@ -36,3 +36,154 @@ GDropGridMemoryDialog.btnAddGridInfo.text= GDropGridMemoryDialog.btnLogin.toolTipText=Login with selected grid GDropGridMemoryDialog.btnLogin.text= GDropGridMemoryDialog.title=Connect to grid +NewJDialog.btnCancel.text= +NewJDialog.btnOK.toolTipText=Save information and log in +NewJDialog.btnOK.text= +NewJDialog.btnCancel.toolTipText=cancel +NewJDialog.lblHost.text=Host: +NewJDialog.txtUsername.text= +NewJDialog.txtVerifyPassword.text= +NewJDialog.lblConfirmPassword.text=Confirm Password: +NewJDialog.lblPassword.text=Password: +NewJDialog.txtPassword.text= +NewJDialog.lblComment.text=Comment: +NewJDialog.lblAuthorozationScheme.text=Authorization Scheme: +NewJDialog.txtInitialPath.text= +NewJDialog.lblStartingCollection.text=Starting Collection: +NewJDialog.txtDefaultResource.text= +NewJDialog.lblUserName.text=Default Resource: +NewJDialog.lblUser.text=User: +NewJDialog.lblZoneValue.text= +NewJDialog.lblZone.text=Zone: +NewJDialog.txtPort.text=1247 +NewJDialog.lblPort.text=Port: +NewJDialog.lblHostAddress.text= +Test.jLabel1.text=jLabel1 +Test.lblHost.text=Host: +Test.txtUsername2.text= +Test.lblComment2.text=Comment: +Test.lblAuthorozationScheme2.text=Authorization Scheme: +Test.txtInitialPath2.text= +Test.lblStartingCollection2.text=Starting Collection: +Test.txtDefaultResource2.text= +Test.lblZoneValue2.text= +Test.lblZone2.text=Zone: +Test.txtPort2.text=1247 +Test.lblPort2.text=Port: +Test.lblHostAddress2.text= +Test.lblHost2.text=Host: +Test.lblComment1.text=Comment: +Test.lblAuthorozationScheme1.text=Authorization Scheme: +Test.txtInitialPath1.text= +Test.lblStartingCollection1.text=Starting Collection: +Test.txtDefaultResource1.text= +Test.lblZoneValue1.text= +Test.lblZone1.text=Zone: +Test.txtPort1.text=1247 +Test.lblPort1.text=Port: +Test.lblHostAddress1.text= +Test.lblHost1.text=Host: +Test.lblConfirmPassword.text=Confirm Password: +Test.lblComment.text=Comment: +Test.lblAuthorozationScheme.text=Authorization Scheme: +Test.txtInitialPath.text= +Test.lblUserName.text=Default Resource: +Test.lblUser.text=User: +Test.lblZone.text=Zone: +Test.lblPort.text=Port: +Test.btnOK.toolTipText=Save information and log in +Test.btnCancel.toolTipText=cancel +GDropOldLoginDialog.lblStartingCollection1.text=Starting Collection: +GDropOldLoginDialog.lblStartingCollection2.text=Starting Collection: +GDropOldLoginDialog.lblComment2.text=Comment: +GDropOldLoginDialog.lblAuthorozationScheme2.text=Authorization Scheme: +GDropOldLoginDialog.txtInitialPath2.text= +GDropOldLoginDialog.lblUserName.text=Default Resource: +GDropOldLoginDialog.txtPort2.text=1247 +GDropOldLoginDialog.lblZone2.text=Zone: +GDropOldLoginDialog.lblHostAddress2.text= +GDropOldLoginDialog.lblPort2.text=Port: +GDropOldLoginDialog.lblZoneValue2.text= +GDropOldLoginDialog.txtDefaultResource2.text= +GDropOldLoginDialog.lblPassword.text=Password: +GDropOldLoginDialog.lblConfirmPassword.text=Confirm Password: +GDropOldLoginDialog.lblStartingCollection.text=Starting Collection: +GDropOldLoginDialog.txtDefaultResource.text= +GDropOldLoginDialog.lblAuthorozationScheme.text=Authorization Scheme: +GDropOldLoginDialog.txtInitialPath.text= +GDropOldLoginDialog.lblComment.text=Comment: +GDropOldLoginDialog.txtPassword.text= +GDropOldLoginDialog.txtUsername2.text= +GDropOldLoginDialog.lblZoneValue.text= +GDropOldLoginDialog.lblUser.text=User: +GDropOldLoginDialog.txtPort1.text=1247 +GDropOldLoginDialog.lblHostAddress.text= +GDropOldLoginDialog.lblZone1.text=Zone: +GDropOldLoginDialog.lblPort.text=Port: +GDropOldLoginDialog.txtPort.text=1247 +GDropOldLoginDialog.lblPort1.text=Port: +GDropOldLoginDialog.lblZone.text=Zone: +GDropOldLoginDialog.lblHost.text=Host: +GDropOldLoginDialog.lblHostAddress1.text= +GDropOldLoginDialog.lblHost1.text=Host: +GDropOldLoginDialog.btnOK.toolTipText=Save information and log in +GDropOldLoginDialog.btnOK.text= +GDropOldLoginDialog.btnCancel.toolTipText=cancel +GDropOldLoginDialog.btnCancel.text= +GDropOldLoginDialog.txtUsername.text= +GDropOldLoginDialog.txtVerifyPassword.text= +GDropOldLoginDialog.lblHost2.text=Host: +GDropOldLoginDialog.lblAuthorozationScheme1.text=Authorization Scheme: +GDropOldLoginDialog.lblComment1.text=Comment: +GDropOldLoginDialog.txtDefaultResource1.text= +GDropOldLoginDialog.lblZoneValue1.text= +GDropOldLoginDialog.txtInitialPath1.text= +GDropLoginDialog.btnOK.toolTipText_1=Save information and log in +GDropLoginDialog.btnOK.text= +GDropLoginDialog.btnCancel.toolTipText_1=cancel +GDropLoginDialog.btnCancel.text= +GDropLoginDialog.lblVerifyPassword.text=Verify password +GDropLoginDialog.txtPassword.text= +GDropLoginDialog.txtVerifyPassword.text= +GDropLoginDialog.lblPassword.text=Password +GDropLoginDialog.txtplgridUsername.text=plg +GDropLoginDialog.lblPlgridUsername.text=PL-Grid username +GDropLoginDialog.lblPlgridPassword.text=PL-Grid password +GDropLoginDialog.txtPlgridPassword.text= +GDropLoginDialog.txtKeyPassword.text= +GDropLoginDialog.lblKeyPassword.text=PL-Grid key password +GDropLoginDialog.lblHost.text=Host +GDropLoginDialog.lblHostAddress.text=Example host +GDropLoginDialog.lblPort.text=Port +GDropLoginDialog.txtPort.text=Example port +GDropLoginDialog.lblZone.text=Zone +GDropLoginDialog.lblZoneValue.text=Example zone +GDropLoginDialog.lblUsername.text=Username +GDropLoginDialog.txtUsername.text=Example username +GDropLoginDialog.lblAuthScheme.text=Authorization scheme +GDropLoginDialog.lblDefaultResource.text=Default resource +GDropLoginDialog.txtDefaultResource.text=Example default resource +GDropLoginDialog.lblStartingCollection.text=Starting collection +GDropLoginDialog.txtInitialPath.text=Example starting collection +GDropLoginDialog.lblComment.text=Comment +GDropLoginDialog.txtComment.text=Example comment +GDropLoginDialog.lblPEMCert.text=Cert +GDropLoginDialog.txtPEMCert.text= +GDropLoginDialog.lblPEMKey.text=Key +GDropLoginDialog.txtPEMKey.text= +GDropLoginDialog.lblPEMCertPassword.text=Password +GDropLoginDialog.txtPEMCertPassword.text= +GDropLoginDialog.btnChoosePEMCert.text=... +GDropLoginDialog.btnChoosePEMKey.text=... +GDropLoginDialog.lblP12Cert.text=Cert +GDropLoginDialog.txtP12Cert.text= +GDropLoginDialog.lblP12CertPassword.text=Password +GDropLoginDialog.txtP12CertPassword.text= +GDropLoginDialog.btnChooseP12Cert.text=... +GDropLoginDialog.lblProxyCert.text=Cert +GDropLoginDialog.txtProxyCert.text= +GDropLoginDialog.btnChooseProxyCert.text=... +GDropLoginDialog.txtKeystoreCertPassword.text= +GDropLoginDialog.lblKeystoreCertPassword.text=Password +GDropLoginDialog.lblKeystoreBrowser.text=Browser +GDropLoginDialog.lblKeystoreCert.text=Cert |