aboutsummaryrefslogtreecommitdiff
path: root/src/GUIComponents/ThreadRunner.java
diff options
context:
space:
mode:
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