summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorirods <irods@irodsfedora14.(none)>2011-08-19 17:36:45 (GMT)
committer irods <irods@irodsfedora14.(none)>2011-08-19 17:36:45 (GMT)
commit3eca58c1631d96cfc1a41b3fab1ab05b81ab1403 (patch)
tree254e2ad4e737a192d92b566be379d83780401cd7
parent5e19b6176e90ccaf5e306229bd93d60907801329 (diff)
downloadQCG-Data-3eca58c1631d96cfc1a41b3fab1ab05b81ab1403.zip
QCG-Data-3eca58c1631d96cfc1a41b3fab1ab05b81ab1403.tar.gz
QCG-Data-3eca58c1631d96cfc1a41b3fab1ab05b81ab1403.tar.bz2
[#432] fix file name truncation in progress bar panel
-rw-r--r--idrop-swing/src/main/java/org/irods/jargon/idrop/desktop/systraygui/iDrop.form25
-rw-r--r--idrop-swing/src/main/java/org/irods/jargon/idrop/desktop/systraygui/iDrop.java12
2 files changed, 31 insertions, 6 deletions
diff --git a/idrop-swing/src/main/java/org/irods/jargon/idrop/desktop/systraygui/iDrop.form b/idrop-swing/src/main/java/org/irods/jargon/idrop/desktop/systraygui/iDrop.form
index 1205b61..3cc44d9 100644
--- a/idrop-swing/src/main/java/org/irods/jargon/idrop/desktop/systraygui/iDrop.form
+++ b/idrop-swing/src/main/java/org/irods/jargon/idrop/desktop/systraygui/iDrop.form
@@ -1338,16 +1338,35 @@
</Constraint>
</Constraints>
- <Layout class="org.netbeans.modules.form.compat2.layouts.DesignFlowLayout">
- <Property name="alignment" type="int" value="0"/>
- </Layout>
+ <Layout class="org.netbeans.modules.form.compat2.layouts.DesignGridBagLayout"/>
<SubComponents>
<Component class="javax.swing.JLabel" name="lblCurrentFileLabel">
<Properties>
<Property name="text" type="java.lang.String" value="Current File:"/>
</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="22" weightX="0.0" weightY="0.0"/>
+ </Constraint>
+ </Constraints>
</Component>
<Component class="javax.swing.JLabel" name="lblCurrentFile">
+ <Properties>
+ <Property name="maximumSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">
+ <Dimension value="[999, 999]"/>
+ </Property>
+ <Property name="minimumSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">
+ <Dimension value="[30, 10]"/>
+ </Property>
+ <Property name="preferredSize" type="java.awt.Dimension" editor="org.netbeans.beaninfo.editors.DimensionEditor">
+ <Dimension value="[300, 20]"/>
+ </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>
diff --git a/idrop-swing/src/main/java/org/irods/jargon/idrop/desktop/systraygui/iDrop.java b/idrop-swing/src/main/java/org/irods/jargon/idrop/desktop/systraygui/iDrop.java
index 10aad6b..661773a 100644
--- a/idrop-swing/src/main/java/org/irods/jargon/idrop/desktop/systraygui/iDrop.java
+++ b/idrop-swing/src/main/java/org/irods/jargon/idrop/desktop/systraygui/iDrop.java
@@ -1856,11 +1856,17 @@ public class iDrop extends javax.swing.JFrame implements ActionListener,
pnlTransferOverview.add(pnlTransferStatus, java.awt.BorderLayout.NORTH);
- pnlTransferFileInfo.setLayout(new java.awt.FlowLayout(java.awt.FlowLayout.LEFT));
+ pnlTransferFileInfo.setLayout(new java.awt.GridBagLayout());
lblCurrentFileLabel.setText("Current File:");
- pnlTransferFileInfo.add(lblCurrentFileLabel);
- pnlTransferFileInfo.add(lblCurrentFile);
+ gridBagConstraints = new java.awt.GridBagConstraints();
+ gridBagConstraints.anchor = java.awt.GridBagConstraints.LINE_END;
+ pnlTransferFileInfo.add(lblCurrentFileLabel, gridBagConstraints);
+
+ lblCurrentFile.setMaximumSize(new java.awt.Dimension(999, 999));
+ lblCurrentFile.setMinimumSize(new java.awt.Dimension(30, 10));
+ lblCurrentFile.setPreferredSize(new java.awt.Dimension(300, 20));
+ pnlTransferFileInfo.add(lblCurrentFile, new java.awt.GridBagConstraints());
pnlTransferOverview.add(pnlTransferFileInfo, java.awt.BorderLayout.CENTER);