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

noreply at berlios.de noreply at berlios.de
Wed Dec 12 19:17:08 CET 2007


Author: jponge
Date: 2007-12-12 19:17:00 +0100 (Wed, 12 Dec 2007)
New Revision: 1951

Modified:
   izpack-src/trunk/Versions.txt
   izpack-src/trunk/src/lib/com/izforge/izpack/panels/ProcessPanel.java
Log:
ProcessPanel: make the progress bar advance after the current process has run, not before (Julien Ponge)


Modified: izpack-src/trunk/Versions.txt
===================================================================
--- izpack-src/trunk/Versions.txt	2007-12-12 13:08:30 UTC (rev 1950)
+++ izpack-src/trunk/Versions.txt	2007-12-12 18:17:00 UTC (rev 1951)
@@ -64,6 +64,8 @@
   the https://izpack.github.io/ website (Julien Ponge)
 - Added debugging for variables and conditions (Dennis Reil)
 - Added built-in conditions (Dennis Reil)
+- ProcessPanel: make the progress bar advance after the current process has run, not before
+  (Julien Ponge)
 
   
   > 3.10.2 (build 2007.05.11)

Modified: izpack-src/trunk/src/lib/com/izforge/izpack/panels/ProcessPanel.java
===================================================================
--- izpack-src/trunk/src/lib/com/izforge/izpack/panels/ProcessPanel.java	2007-12-12 13:08:30 UTC (rev 1950)
+++ izpack-src/trunk/src/lib/com/izforge/izpack/panels/ProcessPanel.java	2007-12-12 18:17:00 UTC (rev 1951)
@@ -100,7 +100,10 @@
         heading.setHorizontalAlignment(SwingConstants.CENTER);
         heading.setText(parent.langpack.getString("ProcessPanel.heading"));
         heading.setVerticalAlignment(SwingConstants.TOP);
-        setLayout(new BorderLayout());
+        BorderLayout layout = new BorderLayout();
+        layout.setHgap(2);
+        layout.setVgap(2);
+        setLayout(layout);
         add(heading, BorderLayout.NORTH);
 
         // put everything but the heading into it's own panel
@@ -190,17 +193,16 @@
     public void startProcess(String jobName)
     {
         processLabel.setText(jobName);
+    }
 
+    public void finishProcess()
+    {
         this.currentJob++;
         overallProgressBar.setValue(this.currentJob);
         overallProgressBar.setString(Integer.toString(this.currentJob) + " / "
                 + Integer.toString(this.noOfJobs));
     }
 
-    public void finishProcess()
-    {
-    }
-
     /** Called when the panel becomes active. */
     public void panelActivate()
     {



More information about the izpack-changes mailing list