X-Git-Url: http://git.nikiroo.be/?a=blobdiff_plain;f=src%2Fbe%2Fnikiroo%2Futils%2Fui%2FProgressBar.java;h=11e1e6c05356638266a105762a1cf569f8797f36;hb=7a55041dd8940f529ab47284ee722e286b2e47e6;hp=2abd2b7dc25d1a868a781e5ce9fbcae55fb585e2;hpb=b3aad1f93ce78c9806361ca1659defcf99b45bdc;p=nikiroo-utils.git
diff --git a/src/be/nikiroo/utils/ui/ProgressBar.java b/src/be/nikiroo/utils/ui/ProgressBar.java
index 2abd2b7..11e1e6c 100644
--- a/src/be/nikiroo/utils/ui/ProgressBar.java
+++ b/src/be/nikiroo/utils/ui/ProgressBar.java
@@ -1,81 +1,188 @@
package be.nikiroo.utils.ui;
-import java.awt.BorderLayout;
+import java.awt.GridLayout;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.util.ArrayList;
+import java.util.HashMap;
import java.util.List;
+import java.util.Map;
-import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JProgressBar;
import javax.swing.SwingUtilities;
import be.nikiroo.utils.Progress;
+/**
+ * A graphical control to show the progress of a {@link Progress}.
+ *
+ * This control is NOT thread-safe.
+ *
+ * @author niki
+ */
public class ProgressBar extends JPanel {
private static final long serialVersionUID = 1L;
- private JProgressBar bar;
- private JLabel label;
- private List listeners;
+ private Map