git://git.nikiroo.be
/
nikiroo-utils.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ee5246e
)
Progress: new convenience constructor
author
Niki Roo
<niki@nikiroo.be>
Sat, 18 Apr 2020 15:37:24 +0000
(17:37 +0200)
committer
Niki Roo
<niki@nikiroo.be>
Sat, 18 Apr 2020 15:37:24 +0000
(17:37 +0200)
src/be/nikiroo/utils/ui/ProgressBar.java
patch
|
blob
|
blame
|
history
diff --git
a/src/be/nikiroo/utils/ui/ProgressBar.java
b/src/be/nikiroo/utils/ui/ProgressBar.java
index 219cde9a2d2f5fc2555aa8cd7519b573e73e232d..11e1e6c05356638266a105762a1cf569f8797f36 100644
(file)
--- a/
src/be/nikiroo/utils/ui/ProgressBar.java
+++ b/
src/be/nikiroo/utils/ui/ProgressBar.java
@@
-35,6
+35,11
@@
public class ProgressBar extends JPanel {
actionListeners = new ArrayList<ActionListener>();
updateListeners = new ArrayList<ActionListener>();
}
+
+ public ProgressBar(Progress pg) {
+ this();
+ setProgress(pg);
+ }
public void setProgress(final Progress pg) {
this.pg = pg;