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

noreply at berlios.de noreply at berlios.de
Sun Jan 13 14:37:50 CET 2008


Author: jponge
Date: 2008-01-13 14:37:46 +0100 (Sun, 13 Jan 2008)
New Revision: 1982

Modified:
   izpack-src/trunk/Versions.txt
   izpack-src/trunk/src/lib/com/izforge/izpack/panels/InstallationGroupPanel.java
Log:
InstallationGroupPanel UI improvements (Jeff Gordon via Julien Ponge)

Modified: izpack-src/trunk/Versions.txt
===================================================================
--- izpack-src/trunk/Versions.txt	2008-01-13 13:29:57 UTC (rev 1981)
+++ izpack-src/trunk/Versions.txt	2008-01-13 13:37:46 UTC (rev 1982)
@@ -82,6 +82,7 @@
 - Italian translation update (Roberto Boriotti, Sylvain Gaudard via Julien Ponge)
 - PacksPanelAutomationHelper fix (Jeff Gordon via Julien Ponge)
 - 'parsexml' attribute for resources (Matthew Fudge via Julien Ponge)
+- InstallationGroupPanel UI improvements (Jeff Gordon via Julien Ponge)
 
 
   > 3.10.2 (build 2007.05.11)

Modified: izpack-src/trunk/src/lib/com/izforge/izpack/panels/InstallationGroupPanel.java
===================================================================
--- izpack-src/trunk/src/lib/com/izforge/izpack/panels/InstallationGroupPanel.java	2008-01-13 13:29:57 UTC (rev 1981)
+++ izpack-src/trunk/src/lib/com/izforge/izpack/panels/InstallationGroupPanel.java	2008-01-13 13:37:46 UTC (rev 1982)
@@ -59,6 +59,8 @@
 import com.izforge.izpack.util.AbstractUIHandler;
 import com.izforge.izpack.util.Debug;
 import com.izforge.izpack.util.OsConstraint;
+import javax.swing.SwingConstants;
+import javax.swing.table.DefaultTableCellRenderer;
 
 
 /**
@@ -148,6 +150,10 @@
           }
         };
         tcm.getColumn(0).setCellRenderer(radioButtonRenderer);
+
+        DefaultTableCellRenderer renderer = new DefaultTableCellRenderer();
+        renderer.setHorizontalAlignment(SwingConstants.RIGHT);
+        tcm.getColumn(1).setCellRenderer(renderer);
         
         //groupsTable.setColumnSelectionAllowed(false);
         //groupsTable.setRowSelectionAllowed(true);
@@ -499,9 +505,9 @@
     protected TableModel getModel(HashMap groupData)
     {
         String c1 = parent.langpack.getString("InstallationGroupPanel.colNameSelected");
-        String c2 = parent.langpack.getString("InstallationGroupPanel.colNameInstallType");
+        //String c2 = parent.langpack.getString("InstallationGroupPanel.colNameInstallType");
         String c3 = parent.langpack.getString("InstallationGroupPanel.colNameSize");
-        String[] columns = {c1, c2, c3};
+        String[] columns = {c1, c3};
          DefaultTableModel model = new DefaultTableModel (columns, 0)
          {
             public boolean isCellEditable (int row, int column)
@@ -567,7 +573,8 @@
             }
             buttonGroup.add(btn);
             String sizeText = gd.getSizeString();
-            Object[] data = { btn, gd.description, sizeText};
+            //Object[] data = { btn, gd.description, sizeText};
+            Object[] data = { btn, sizeText};
             model.addRow(data);
             count ++;
         }



More information about the izpack-changes mailing list