[izpack-changes] r1886 - in izpack-src/trunk: . src/lib/com/izforge/izpack/panels

noreply at berlios.de noreply at berlios.de
Thu Oct 25 16:09:32 CEST 2007


Author: dreil
Date: 2007-10-25 16:09:20 +0200 (Thu, 25 Oct 2007)
New Revision: 1886

Modified:
   izpack-src/trunk/Versions.txt
   izpack-src/trunk/src/lib/com/izforge/izpack/panels/PacksModel.java
   izpack-src/trunk/src/lib/com/izforge/izpack/panels/PacksPanelBase.java
Log:
Fixed wrong display size of really big packs

Modified: izpack-src/trunk/Versions.txt
===================================================================
--- izpack-src/trunk/Versions.txt	2007-10-20 17:28:16 UTC (rev 1885)
+++ izpack-src/trunk/Versions.txt	2007-10-25 14:09:20 UTC (rev 1886)
@@ -49,6 +49,7 @@
   kept on uninstallation (Gildas Le Louarn via Julien Ponge)
 - Uninstaller: in GUI mode, users don't see the 'force uninstallation' checkbox unless the
   '-x' command-line flag is used (Gildas Le Louarn via Julien Ponge)
+- Fixed wrong display size of really big packs (Dennis Reil) 
   
   > 3.10.2 (build 2007.05.11)
 

Modified: izpack-src/trunk/src/lib/com/izforge/izpack/panels/PacksModel.java
===================================================================
--- izpack-src/trunk/src/lib/com/izforge/izpack/panels/PacksModel.java	2007-10-20 17:28:16 UTC (rev 1885)
+++ izpack-src/trunk/src/lib/com/izforge/izpack/panels/PacksModel.java	2007-10-25 14:09:20 UTC (rev 1886)
@@ -311,7 +311,7 @@
             }
 
         case 2:
-            return Pack.toByteUnitsString((int) pack.nbytes);
+            return Pack.toByteUnitsString(pack.nbytes);
 
         default:
             return null;

Modified: izpack-src/trunk/src/lib/com/izforge/izpack/panels/PacksPanelBase.java
===================================================================
--- izpack-src/trunk/src/lib/com/izforge/izpack/panels/PacksPanelBase.java	2007-10-20 17:28:16 UTC (rev 1885)
+++ izpack-src/trunk/src/lib/com/izforge/izpack/panels/PacksPanelBase.java	2007-10-25 14:09:20 UTC (rev 1886)
@@ -30,8 +30,6 @@
 import java.awt.Graphics;
 import java.awt.GridBagConstraints;
 import java.awt.GridBagLayout;
-import java.awt.event.ActionEvent;
-import java.awt.event.ActionListener;
 import java.io.File;
 import java.io.InputStream;
 import java.util.HashMap;
@@ -39,7 +37,6 @@
 import java.util.List;
 import java.util.Map;
 
-import javax.swing.AbstractCellEditor;
 import javax.swing.BorderFactory;
 import javax.swing.Box;
 import javax.swing.BoxLayout;
@@ -53,12 +50,10 @@
 import javax.swing.JTable;
 import javax.swing.JTextArea;
 import javax.swing.ListSelectionModel;
-import javax.swing.border.Border;
 import javax.swing.event.ListSelectionEvent;
 import javax.swing.event.ListSelectionListener;
 import javax.swing.plaf.metal.MetalLookAndFeel;
 import javax.swing.table.DefaultTableCellRenderer;
-import javax.swing.table.TableCellEditor;
 import javax.swing.table.TableCellRenderer;
 
 import net.n3.nanoxml.XMLElement;
@@ -133,7 +128,7 @@
     /**
      * The bytes of the current pack.
      */
-    protected int bytes = 0;
+    protected long bytes = 0;
 
     /**
      * The free bytes of the current selected disk.
@@ -203,7 +198,7 @@
      */
     public int getBytes()
     {
-        return (bytes);
+        return (int) (bytes);
     }
 
     /*



More information about the izpack-changes mailing list