aboutsummaryrefslogtreecommitdiff
path: root/src/GUIComponents/ThreadRunner.java
diff options
context:
space:
mode:
authorJoshua Rahm <joshua.rahm@colorado.edu>2015-01-30 17:11:48 -0700
committerJoshua Rahm <joshua.rahm@colorado.edu>2015-01-30 17:11:48 -0700
commit1c5e38fe69ac8a6decbdd8abe93112f4e3369315 (patch)
tree926cef8cb76d46862ed2c4ec7028720611e47476 /src/GUIComponents/ThreadRunner.java
downloadModulus3D-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.java29
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