diff options
| author | Joshua Rahm <joshua.rahm@colorado.edu> | 2015-01-30 17:11:48 -0700 |
|---|---|---|
| committer | Joshua Rahm <joshua.rahm@colorado.edu> | 2015-01-30 17:11:48 -0700 |
| commit | 1c5e38fe69ac8a6decbdd8abe93112f4e3369315 (patch) | |
| tree | 926cef8cb76d46862ed2c4ec7028720611e47476 /src/GUIComponents/ThreadRunner.java | |
| download | Modulus3D-1c5e38fe69ac8a6decbdd8abe93112f4e3369315.tar.gz Modulus3D-1c5e38fe69ac8a6decbdd8abe93112f4e3369315.tar.bz2 Modulus3D-1c5e38fe69ac8a6decbdd8abe93112f4e3369315.zip | |
added source
Diffstat (limited to 'src/GUIComponents/ThreadRunner.java')
| -rw-r--r-- | src/GUIComponents/ThreadRunner.java | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/src/GUIComponents/ThreadRunner.java b/src/GUIComponents/ThreadRunner.java new file mode 100644 index 0000000..d3043ca --- /dev/null +++ b/src/GUIComponents/ThreadRunner.java @@ -0,0 +1,29 @@ +/* */ package GUIComponents; +/* */ +/* */ import javax.swing.JFrame; +/* */ +/* */ public class ThreadRunner extends Thread +/* */ { +/* */ private ProgressFrame progress; +/* */ +/* */ public ThreadRunner(JFrame parent) +/* */ { +/* 15 */ super(new ThreadGroup(Thread.currentThread().getThreadGroup().getParent(), "Loading"), "Bar"); +/* 16 */ this.progress = new ProgressFrame(0, 100, parent); +/* 17 */ setPriority(1); +/* */ } +/* */ public void increment(double amt) { +/* 20 */ this.progress.incrementProgress(amt); +/* */ } +/* */ public void flagEnd() { +/* 23 */ this.progress.setVisible(false); +/* */ } +/* */ public void run() { +/* 26 */ this.progress.setVisible(true); +/* */ } +/* */ } + +/* Location: Modulus.jar + * Qualified Name: GUIComponents.ThreadRunner + * JD-Core Version: 0.6.2 + */
\ No newline at end of file |