From 046e4467cfe89a32ba24fd4e1f7bf059b4cbb88a Mon Sep 17 00:00:00 2001 From: Kaloyan Enimanev Date: Thu, 8 Sep 2011 12:53:45 +0200 Subject: [PATCH 05/10] bugfix: progress bar was not always repainting after the completion of a process execution --- .../izpack/panels/process/ProcessPanel.java | 19 +++++++++++++++---- 1 files changed, 15 insertions(+), 4 deletions(-) diff --git a/izpack-panel/src/main/java/com/izforge/izpack/panels/process/ProcessPanel.java b/izpack-panel/src/main/java/com/izforge/izpack/panels/process/ProcessPanel.java index c183845..a3e6a5f 100644 --- a/izpack-panel/src/main/java/com/izforge/izpack/panels/process/ProcessPanel.java +++ b/izpack-panel/src/main/java/com/izforge/izpack/panels/process/ProcessPanel.java @@ -21,6 +21,20 @@ package com.izforge.izpack.panels.process; +import java.awt.BorderLayout; +import java.awt.Dimension; +import java.awt.Font; +import java.io.IOException; + +import javax.swing.BoxLayout; +import javax.swing.JLabel; +import javax.swing.JPanel; +import javax.swing.JProgressBar; +import javax.swing.JScrollPane; +import javax.swing.JTextArea; +import javax.swing.SwingConstants; +import javax.swing.SwingUtilities; + import com.izforge.izpack.api.adaptator.IXMLElement; import com.izforge.izpack.api.data.ResourceManager; import com.izforge.izpack.api.handler.AbstractUIProcessHandler; @@ -28,10 +42,6 @@ import com.izforge.izpack.installer.base.InstallerFrame; import com.izforge.izpack.installer.base.IzPanel; import com.izforge.izpack.installer.data.GUIInstallData; -import javax.swing.*; -import java.awt.*; -import java.io.IOException; - /** * The process panel class. *

@@ -175,6 +185,7 @@ public class ProcessPanel extends IzPanel implements AbstractUIProcessHandler String no_of_jobs = Integer.toString(ProcessPanel.this.noOfJobs); overallProgressBar.setString(no_of_jobs + " / " + no_of_jobs); + overallProgressBar.repaint(); processLabel.setText(" "); processLabel.setEnabled(false); -- 1.7.4.1