summaryrefslogtreecommitdiffstats
path: root/idrop-lite
diff options
context:
space:
mode:
authorLISA STILLWELL <lisa@dhcp152-54-6-218.wireless.europa.renci.org>2012-03-26 17:44:11 (GMT)
committer LISA STILLWELL <lisa@dhcp152-54-6-218.wireless.europa.renci.org>2012-03-26 17:44:11 (GMT)
commitf29ad7593df702a2ed40f03ec6b32bf0599863e8 (patch)
tree0d7728a8cb3a74ad21d8a0d5652a2bd1dfc5d915 /idrop-lite
parentc7bc1597018057178c397dae5e86ca61ad5d65aa (diff)
downloadQCG-Data-f29ad7593df702a2ed40f03ec6b32bf0599863e8.zip
QCG-Data-f29ad7593df702a2ed40f03ec6b32bf0599863e8.tar.gz
QCG-Data-f29ad7593df702a2ed40f03ec6b32bf0599863e8.tar.bz2
[#670] tweaked layout of iDrop Web mode download cart to include instructions on use
Diffstat (limited to 'idrop-lite')
-rw-r--r--idrop-lite/src/main/java/org/irods/jargon/idrop/lite/iDropLiteApplet.form120
-rw-r--r--idrop-lite/src/main/java/org/irods/jargon/idrop/lite/iDropLiteApplet.java57
-rw-r--r--idrop-lite/src/main/java/org/irods/jargon/idrop/lite/iDropLiteCore.java24
-rw-r--r--idrop-lite/src/main/resources/org/irods/jargon/idrop/lite/Bundle.properties1
4 files changed, 173 insertions, 29 deletions
diff --git a/idrop-lite/src/main/java/org/irods/jargon/idrop/lite/iDropLiteApplet.form b/idrop-lite/src/main/java/org/irods/jargon/idrop/lite/iDropLiteApplet.form
index 339de36..43a07e9 100644
--- a/idrop-lite/src/main/java/org/irods/jargon/idrop/lite/iDropLiteApplet.form
+++ b/idrop-lite/src/main/java/org/irods/jargon/idrop/lite/iDropLiteApplet.form
@@ -1249,7 +1249,7 @@
<Property name="model" type="javax.swing.table.TableModel" editor="org.netbeans.modules.form.editors2.TableModelEditor">
<Table columnCount="5" rowCount="0">
<Column editable="false" title="File Name" type="java.lang.String"/>
- <Column editable="false" title="File/Folder Size" type="java.lang.Integer"/>
+ <Column editable="false" title="File/Folder Size" type="java.lang.Long"/>
<Column editable="false" title="Progress" type="java.lang.Object"/>
<Column editable="true" title="Cancel/Remove" type="java.lang.Boolean"/>
<Column editable="false" title="File Type" type="java.lang.Integer"/>
@@ -1734,8 +1734,9 @@
</Border>
</Property>
<Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">
- <Dimension value="[700, 40]"/>
+ <Dimension value="[700, 68]"/>
</Property>
+ <Property name="requestFocusEnabled" type="boolean" value="false"/>
</Properties>
<Constraints>
<Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignBorderLayout" value="org.netbeans.modules.form.compat2.layouts.DesignBorderLayout$BorderConstraintsDescription">
@@ -1745,33 +1746,105 @@
<Layout class="org.netbeans.modules.form.compat2.layouts.DesignBorderLayout"/>
<SubComponents>
- <Component class="javax.swing.JTextField" name="txtIdropWebModeDownloadTarget">
+ <Container class="javax.swing.JPanel" name="pnlIdropWebModeText">
<Properties>
- <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
- <ResourceString bundle="org/irods/jargon/idrop/lite/Bundle.properties" key="iDropLiteApplet.txtIdropWebModeDownloadTarget.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, &quot;{key}&quot;)"/>
+ <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="2" left="2" right="2" top="2"/>
+ </Border>
+ </Property>
+ <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">
+ <Dimension value="[682, 30]"/>
</Property>
</Properties>
<Constraints>
<Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignBorderLayout" value="org.netbeans.modules.form.compat2.layouts.DesignBorderLayout$BorderConstraintsDescription">
- <BorderConstraints direction="Center"/>
+ <BorderConstraints direction="North"/>
</Constraint>
</Constraints>
- </Component>
- <Component class="javax.swing.JButton" name="btnIdropWebModeTargetBrowse">
+
+ <Layout class="org.netbeans.modules.form.compat2.layouts.DesignBorderLayout"/>
+ <SubComponents>
+ <Component class="javax.swing.JLabel" name="jLabel1">
+ <Properties>
+ <Property name="font" type="java.awt.Font" editor="org.netbeans.beaninfo.editors.FontEditor">
+ <Font name="Lucida Grande" size="10" style="0"/>
+ </Property>
+ <Property name="horizontalAlignment" type="int" value="0"/>
+ <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
+ <ResourceString bundle="org/irods/jargon/idrop/lite/Bundle.properties" key="iDropLiteApplet.jLabel1.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, &quot;{key}&quot;)"/>
+ </Property>
+ <Property name="minimumSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">
+ <Dimension value="[57, 18]"/>
+ </Property>
+ <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">
+ <Dimension value="[350, 26]"/>
+ </Property>
+ </Properties>
+ <Constraints>
+ <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignBorderLayout" value="org.netbeans.modules.form.compat2.layouts.DesignBorderLayout$BorderConstraintsDescription">
+ <BorderConstraints direction="Center"/>
+ </Constraint>
+ </Constraints>
+ </Component>
+ </SubComponents>
+ </Container>
+ <Container class="javax.swing.JPanel" name="pnlIdropWebModeDownloadDest">
<Properties>
- <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
- <ResourceString bundle="org/irods/jargon/idrop/lite/Bundle.properties" key="iDropLiteApplet.btnIdropWebModeTargetBrowse.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, &quot;{key}&quot;)"/>
+ <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">
+ <Dimension value="[682, 26]"/>
</Property>
</Properties>
- <Events>
- <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="btnIdropWebModeTargetBrowseActionPerformed"/>
- </Events>
<Constraints>
<Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignBorderLayout" value="org.netbeans.modules.form.compat2.layouts.DesignBorderLayout$BorderConstraintsDescription">
- <BorderConstraints direction="East"/>
+ <BorderConstraints direction="South"/>
</Constraint>
</Constraints>
- </Component>
+
+ <Layout class="org.netbeans.modules.form.compat2.layouts.DesignBorderLayout"/>
+ <SubComponents>
+ <Component class="javax.swing.JTextField" name="txtIdropWebModeDownloadTarget">
+ <Properties>
+ <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
+ <ResourceString bundle="org/irods/jargon/idrop/lite/Bundle.properties" key="iDropLiteApplet.txtIdropWebModeDownloadTarget.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, &quot;{key}&quot;)"/>
+ </Property>
+ <Property name="minimumSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">
+ <Dimension value="[14, 24]"/>
+ </Property>
+ <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">
+ <Dimension value="[400, 24]"/>
+ </Property>
+ <Property name="requestFocusEnabled" type="boolean" value="false"/>
+ </Properties>
+ <Constraints>
+ <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignBorderLayout" value="org.netbeans.modules.form.compat2.layouts.DesignBorderLayout$BorderConstraintsDescription">
+ <BorderConstraints direction="Center"/>
+ </Constraint>
+ </Constraints>
+ </Component>
+ <Component class="javax.swing.JButton" name="btnIdropWebModeTargetBrowse">
+ <Properties>
+ <Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
+ <ResourceString bundle="org/irods/jargon/idrop/lite/Bundle.properties" key="iDropLiteApplet.btnIdropWebModeTargetBrowse.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, &quot;{key}&quot;)"/>
+ </Property>
+ <Property name="minimumSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">
+ <Dimension value="[88, 24]"/>
+ </Property>
+ <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">
+ <Dimension value="[80, 24]"/>
+ </Property>
+ </Properties>
+ <Events>
+ <EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="btnIdropWebModeTargetBrowseActionPerformed"/>
+ </Events>
+ <Constraints>
+ <Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignBorderLayout" value="org.netbeans.modules.form.compat2.layouts.DesignBorderLayout$BorderConstraintsDescription">
+ <BorderConstraints direction="East"/>
+ </Constraint>
+ </Constraints>
+ </Component>
+ </SubComponents>
+ </Container>
</SubComponents>
</Container>
<Container class="javax.swing.JPanel" name="jPanel6">
@@ -1791,7 +1864,7 @@
<Container class="javax.swing.JPanel" name="jPanel16">
<Properties>
<Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">
- <Dimension value="[700, 24]"/>
+ <Dimension value="[700, 10]"/>
</Property>
</Properties>
<Constraints>
@@ -1808,7 +1881,7 @@
</DimensionLayout>
<DimensionLayout dim="1">
<Group type="103" groupAlignment="0" attributes="0">
- <EmptySpace min="0" pref="24" max="32767" attributes="0"/>
+ <EmptySpace min="0" pref="10" max="32767" attributes="0"/>
</Group>
</DimensionLayout>
</Layout>
@@ -1856,13 +1929,16 @@
<EmptyBorder bottom="3" left="3" right="3" top="3"/>
</Border>
</Property>
+ <Property name="minimumSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">
+ <Dimension value="[151, 28]"/>
+ </Property>
<Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">
- <Dimension value="[700, 40]"/>
+ <Dimension value="[700, 30]"/>
</Property>
</Properties>
<Constraints>
<Constraint layoutClass="org.netbeans.modules.form.compat2.layouts.DesignBorderLayout" value="org.netbeans.modules.form.compat2.layouts.DesignBorderLayout$BorderConstraintsDescription">
- <BorderConstraints direction="Last"/>
+ <BorderConstraints direction="South"/>
</Constraint>
</Constraints>
@@ -1873,6 +1949,12 @@
<Property name="text" type="java.lang.String" editor="org.netbeans.modules.i18n.form.FormI18nStringEditor">
<ResourceString bundle="org/irods/jargon/idrop/lite/Bundle.properties" key="iDropLiteApplet.btnIdropWebModeBeginDownload.text" replaceFormat="org.openide.util.NbBundle.getMessage({sourceFileName}.class, &quot;{key}&quot;)"/>
</Property>
+ <Property name="minimumSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">
+ <Dimension value="[145, 26]"/>
+ </Property>
+ <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">
+ <Dimension value="[134, 24]"/>
+ </Property>
</Properties>
<Events>
<EventHandler event="actionPerformed" listener="java.awt.event.ActionListener" parameters="java.awt.event.ActionEvent" handler="btnIdropWebModeBeginDownloadActionPerformed"/>
diff --git a/idrop-lite/src/main/java/org/irods/jargon/idrop/lite/iDropLiteApplet.java b/idrop-lite/src/main/java/org/irods/jargon/idrop/lite/iDropLiteApplet.java
index 76136ee..d618708 100644
--- a/idrop-lite/src/main/java/org/irods/jargon/idrop/lite/iDropLiteApplet.java
+++ b/idrop-lite/src/main/java/org/irods/jargon/idrop/lite/iDropLiteApplet.java
@@ -318,6 +318,10 @@ public class iDropLiteApplet extends javax.swing.JApplet implements TransferStat
if (!processLogin()) {
return false;
}
+
+ // set Look and Feel
+ String lookAndFeel = iDropCore.setLookAndFeel();
+ log.info("setting look and feel: {}", lookAndFeel);
if (this.displayMode != 3) {
buildTargetTree();
@@ -1272,7 +1276,7 @@ public class iDropLiteApplet extends javax.swing.JApplet implements TransferStat
// for testing
//cart = FileShoppingCart.instance();
- //ShoppingCartEntry entry = ShoppingCartEntry.instance("/test1/home/test1/NC_DEMv2_6_Tile16.txt");
+ //ShoppingCartEntry entry = ShoppingCartEntry.instance("/test1/home/test1/this_file.txt");
//cart.addAnItem(entry);
//
} catch (JargonException e) {
@@ -1533,6 +1537,9 @@ public class iDropLiteApplet extends javax.swing.JApplet implements TransferStat
bntBeginDownload = new javax.swing.JButton();
pnlIdropWebMode = new javax.swing.JPanel();
pnlIdropWebModeDownloadTarget = new javax.swing.JPanel();
+ pnlIdropWebModeText = new javax.swing.JPanel();
+ jLabel1 = new javax.swing.JLabel();
+ pnlIdropWebModeDownloadDest = new javax.swing.JPanel();
txtIdropWebModeDownloadTarget = new javax.swing.JTextField();
btnIdropWebModeTargetBrowse = new javax.swing.JButton();
jPanel6 = new javax.swing.JPanel();
@@ -2266,12 +2273,12 @@ public class iDropLiteApplet extends javax.swing.JApplet implements TransferStat
jPanel1.setPreferredSize(new java.awt.Dimension(400, 38));
- txtDownloadTarget.setFont(new java.awt.Font("Lucida Grande", 0, 12));
+ txtDownloadTarget.setFont(new java.awt.Font("Lucida Grande", 0, 12)); // NOI18N
txtDownloadTarget.setText(org.openide.util.NbBundle.getMessage(iDropLiteApplet.class, "iDropLiteApplet.txtDownloadTarget.text")); // NOI18N
txtDownloadTarget.setPreferredSize(new java.awt.Dimension(300, 28));
jPanel1.add(txtDownloadTarget);
- btnBrowseDownloadTarget.setFont(new java.awt.Font("Lucida Grande", 0, 12));
+ btnBrowseDownloadTarget.setFont(new java.awt.Font("Lucida Grande", 0, 12)); // NOI18N
btnBrowseDownloadTarget.setText(org.openide.util.NbBundle.getMessage(iDropLiteApplet.class, "iDropLiteApplet.btnBrowseDownloadTarget.text")); // NOI18N
btnBrowseDownloadTarget.setPreferredSize(new java.awt.Dimension(80, 29));
btnBrowseDownloadTarget.addActionListener(new java.awt.event.ActionListener() {
@@ -2328,26 +2335,50 @@ public class iDropLiteApplet extends javax.swing.JApplet implements TransferStat
pnlIdropWebMode.setLayout(new java.awt.BorderLayout());
pnlIdropWebModeDownloadTarget.setBorder(javax.swing.BorderFactory.createEmptyBorder(2, 2, 2, 2));
- pnlIdropWebModeDownloadTarget.setPreferredSize(new java.awt.Dimension(700, 40));
+ pnlIdropWebModeDownloadTarget.setPreferredSize(new java.awt.Dimension(700, 68));
+ pnlIdropWebModeDownloadTarget.setRequestFocusEnabled(false);
pnlIdropWebModeDownloadTarget.setLayout(new java.awt.BorderLayout());
+ pnlIdropWebModeText.setBorder(javax.swing.BorderFactory.createEmptyBorder(2, 2, 2, 2));
+ pnlIdropWebModeText.setPreferredSize(new java.awt.Dimension(682, 30));
+ pnlIdropWebModeText.setLayout(new java.awt.BorderLayout());
+
+ jLabel1.setFont(new java.awt.Font("Lucida Grande", 0, 10)); // NOI18N
+ jLabel1.setHorizontalAlignment(javax.swing.SwingConstants.CENTER);
+ jLabel1.setText(org.openide.util.NbBundle.getMessage(iDropLiteApplet.class, "iDropLiteApplet.jLabel1.text")); // NOI18N
+ jLabel1.setMinimumSize(new java.awt.Dimension(57, 18));
+ jLabel1.setPreferredSize(new java.awt.Dimension(350, 26));
+ pnlIdropWebModeText.add(jLabel1, java.awt.BorderLayout.CENTER);
+
+ pnlIdropWebModeDownloadTarget.add(pnlIdropWebModeText, java.awt.BorderLayout.NORTH);
+
+ pnlIdropWebModeDownloadDest.setPreferredSize(new java.awt.Dimension(682, 26));
+ pnlIdropWebModeDownloadDest.setLayout(new java.awt.BorderLayout());
+
txtIdropWebModeDownloadTarget.setText(org.openide.util.NbBundle.getMessage(iDropLiteApplet.class, "iDropLiteApplet.txtIdropWebModeDownloadTarget.text")); // NOI18N
- pnlIdropWebModeDownloadTarget.add(txtIdropWebModeDownloadTarget, java.awt.BorderLayout.CENTER);
+ txtIdropWebModeDownloadTarget.setMinimumSize(new java.awt.Dimension(14, 24));
+ txtIdropWebModeDownloadTarget.setPreferredSize(new java.awt.Dimension(400, 24));
+ txtIdropWebModeDownloadTarget.setRequestFocusEnabled(false);
+ pnlIdropWebModeDownloadDest.add(txtIdropWebModeDownloadTarget, java.awt.BorderLayout.CENTER);
btnIdropWebModeTargetBrowse.setText(org.openide.util.NbBundle.getMessage(iDropLiteApplet.class, "iDropLiteApplet.btnIdropWebModeTargetBrowse.text")); // NOI18N
+ btnIdropWebModeTargetBrowse.setMinimumSize(new java.awt.Dimension(88, 24));
+ btnIdropWebModeTargetBrowse.setPreferredSize(new java.awt.Dimension(80, 24));
btnIdropWebModeTargetBrowse.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
btnIdropWebModeTargetBrowseActionPerformed(evt);
}
});
- pnlIdropWebModeDownloadTarget.add(btnIdropWebModeTargetBrowse, java.awt.BorderLayout.EAST);
+ pnlIdropWebModeDownloadDest.add(btnIdropWebModeTargetBrowse, java.awt.BorderLayout.EAST);
+
+ pnlIdropWebModeDownloadTarget.add(pnlIdropWebModeDownloadDest, java.awt.BorderLayout.SOUTH);
pnlIdropWebMode.add(pnlIdropWebModeDownloadTarget, java.awt.BorderLayout.NORTH);
jPanel6.setPreferredSize(new java.awt.Dimension(700, 60));
jPanel6.setLayout(new java.awt.BorderLayout());
- jPanel16.setPreferredSize(new java.awt.Dimension(700, 24));
+ jPanel16.setPreferredSize(new java.awt.Dimension(700, 10));
org.jdesktop.layout.GroupLayout jPanel16Layout = new org.jdesktop.layout.GroupLayout(jPanel16);
jPanel16.setLayout(jPanel16Layout);
@@ -2357,7 +2388,7 @@ public class iDropLiteApplet extends javax.swing.JApplet implements TransferStat
);
jPanel16Layout.setVerticalGroup(
jPanel16Layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
- .add(0, 24, Short.MAX_VALUE)
+ .add(0, 10, Short.MAX_VALUE)
);
jPanel6.add(jPanel16, java.awt.BorderLayout.NORTH);
@@ -2375,10 +2406,13 @@ public class iDropLiteApplet extends javax.swing.JApplet implements TransferStat
pnlIdropWebMode.add(jPanel6, java.awt.BorderLayout.CENTER);
pnlIdropWebModeBeginDownload.setBorder(javax.swing.BorderFactory.createEmptyBorder(3, 3, 3, 3));
- pnlIdropWebModeBeginDownload.setPreferredSize(new java.awt.Dimension(700, 40));
+ pnlIdropWebModeBeginDownload.setMinimumSize(new java.awt.Dimension(151, 28));
+ pnlIdropWebModeBeginDownload.setPreferredSize(new java.awt.Dimension(700, 30));
pnlIdropWebModeBeginDownload.setLayout(new java.awt.BorderLayout());
btnIdropWebModeBeginDownload.setText(org.openide.util.NbBundle.getMessage(iDropLiteApplet.class, "iDropLiteApplet.btnIdropWebModeBeginDownload.text")); // NOI18N
+ btnIdropWebModeBeginDownload.setMinimumSize(new java.awt.Dimension(145, 26));
+ btnIdropWebModeBeginDownload.setPreferredSize(new java.awt.Dimension(134, 24));
btnIdropWebModeBeginDownload.addActionListener(new java.awt.event.ActionListener() {
public void actionPerformed(java.awt.event.ActionEvent evt) {
btnIdropWebModeBeginDownloadActionPerformed(evt);
@@ -2386,7 +2420,7 @@ public class iDropLiteApplet extends javax.swing.JApplet implements TransferStat
});
pnlIdropWebModeBeginDownload.add(btnIdropWebModeBeginDownload, java.awt.BorderLayout.EAST);
- pnlIdropWebMode.add(pnlIdropWebModeBeginDownload, java.awt.BorderLayout.PAGE_END);
+ pnlIdropWebMode.add(pnlIdropWebModeBeginDownload, java.awt.BorderLayout.SOUTH);
testCardPanel.add(pnlIdropWebMode, "card5");
@@ -2628,6 +2662,7 @@ public class iDropLiteApplet extends javax.swing.JApplet implements TransferStat
private javax.swing.JButton btnUploadLocalRefresh;
private javax.swing.JButton btnUploadMove;
private javax.swing.JButton btnUploadUrl;
+ private javax.swing.JLabel jLabel1;
private javax.swing.JLabel jLabel5;
private javax.swing.JLabel jLabel6;
private javax.swing.JLabel jLabel7;
@@ -2670,8 +2705,10 @@ public class iDropLiteApplet extends javax.swing.JApplet implements TransferStat
private javax.swing.JPanel pnlIdropBottom;
private javax.swing.JPanel pnlIdropWebMode;
private javax.swing.JPanel pnlIdropWebModeBeginDownload;
+ private javax.swing.JPanel pnlIdropWebModeDownloadDest;
private javax.swing.JPanel pnlIdropWebModeDownloadTarget;
private javax.swing.JPanel pnlIdropWebModeProgressBar;
+ private javax.swing.JPanel pnlIdropWebModeText;
private javax.swing.JPanel pnlIrodsSearch;
private javax.swing.JPanel pnlIrodsTree;
private javax.swing.JPanel pnlIrodsTreeView;
diff --git a/idrop-lite/src/main/java/org/irods/jargon/idrop/lite/iDropLiteCore.java b/idrop-lite/src/main/java/org/irods/jargon/idrop/lite/iDropLiteCore.java
index 61e1356..4e240a6 100644
--- a/idrop-lite/src/main/java/org/irods/jargon/idrop/lite/iDropLiteCore.java
+++ b/idrop-lite/src/main/java/org/irods/jargon/idrop/lite/iDropLiteCore.java
@@ -12,6 +12,9 @@ import java.util.logging.Level;
import java.util.logging.Logger;
import java.util.prefs.Preferences;
+import javax.swing.UIManager;
+import javax.swing.UIManager.LookAndFeelInfo;
+import javax.swing.UnsupportedLookAndFeelException;
import javax.swing.table.DefaultTableModel;
import org.irods.jargon.core.connection.IRODSAccount;
@@ -199,6 +202,27 @@ public class iDropLiteCore {
public synchronized void setBasePath(String basePath) {
this.basePath = basePath;
}
+
+ public String setLookAndFeel() {
+
+ String lookAndFeel = null;
+
+ for (LookAndFeelInfo info : UIManager.getInstalledLookAndFeels()) {
+ if ("Nimbus".equals(info.getName())) {
+ lookAndFeel = info.getClassName();
+ break;
+ }
+ }
+
+ try {
+ UIManager.setLookAndFeel(lookAndFeel);
+ } catch (Exception e) {
+ // TODO Auto-generated catch block
+ e.printStackTrace();
+ }
+
+ return lookAndFeel;
+ }
}
diff --git a/idrop-lite/src/main/resources/org/irods/jargon/idrop/lite/Bundle.properties b/idrop-lite/src/main/resources/org/irods/jargon/idrop/lite/Bundle.properties
index 38a814d..47aa82a 100644
--- a/idrop-lite/src/main/resources/org/irods/jargon/idrop/lite/Bundle.properties
+++ b/idrop-lite/src/main/resources/org/irods/jargon/idrop/lite/Bundle.properties
@@ -39,3 +39,4 @@ UploadFromURLDialog.title=Enter URL
UploadFromURLDialog.jLabel1.text=Enter URL below (HTTP(S) or FTP only):
UploadFromURLDialog.btnUploadDFromURL_Add.text=Add
UploadFromURLDialog.btnUploadFromURL_Cancel.text=Cancel
+iDropLiteApplet.jLabel1.text=<html><p>Select a download location then click Begin Download</p></html>