From 1c5e38fe69ac8a6decbdd8abe93112f4e3369315 Mon Sep 17 00:00:00 2001 From: Joshua Rahm Date: Fri, 30 Jan 2015 17:11:48 -0700 Subject: added source --- src/GUIComponents/ThreadRunner.java | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 src/GUIComponents/ThreadRunner.java (limited to 'src/GUIComponents/ThreadRunner.java') 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 -- cgit