[izpack-changes] r1473 - izpack-src/trunk/src/lib/com/izforge/izpack/installer

noreply at berlios.de noreply at berlios.de
Tue Jul 4 11:01:46 CEST 2006


Author: bartzkau
Date: 2006-07-04 11:01:45 +0200 (Tue, 04 Jul 2006)
New Revision: 1473

Modified:
   izpack-src/trunk/src/lib/com/izforge/izpack/installer/InstallerFrame.java
   izpack-src/trunk/src/lib/com/izforge/izpack/installer/IzPanel.java
Log:
hanged key names in heading panel.


Modified: izpack-src/trunk/src/lib/com/izforge/izpack/installer/InstallerFrame.java
===================================================================
--- izpack-src/trunk/src/lib/com/izforge/izpack/installer/InstallerFrame.java	2006-07-04 08:40:50 UTC (rev 1472)
+++ izpack-src/trunk/src/lib/com/izforge/izpack/installer/InstallerFrame.java	2006-07-04 09:01:45 UTC (rev 1473)
@@ -1312,10 +1312,9 @@
         for (i = 0; i <= headingLines; ++i)
             if (headingLabels[i] != null) headingLabels[i].setVisible(false);
         String info;
-        String key = "info";
         for (i = 0; i < headingLines - 1; ++i)
         {
-            info = panel.getI18nStringForClass(key);
+            info = panel.getI18nStringForClass("headinfo" + Integer.toString(i));
             if (info == null) info = " ";
             if (info.endsWith(":"))
             {
@@ -1323,7 +1322,6 @@
             }
             headingLabels[i + 1].setText(info);
             headingLabels[i + 1].setVisible(true);
-            key = "info" + Integer.toString(i);
         }
         // Do not forgett the first headline.
         headingLabels[0].setText(headline);

Modified: izpack-src/trunk/src/lib/com/izforge/izpack/installer/IzPanel.java
===================================================================
--- izpack-src/trunk/src/lib/com/izforge/izpack/installer/IzPanel.java	2006-07-04 08:40:50 UTC (rev 1472)
+++ izpack-src/trunk/src/lib/com/izforge/izpack/installer/IzPanel.java	2006-07-04 09:01:45 UTC (rev 1473)
@@ -857,6 +857,8 @@
             ANCHOR = GridBagConstraints.SOUTHWEST;
         else if("NORTHWEST".equals(todo))
             ANCHOR = GridBagConstraints.NORTHWEST;
+        else if("CENTER".equals(todo))
+            ANCHOR = GridBagConstraints.CENTER;
         return(ANCHOR);
     }
     




More information about the izpack-changes mailing list