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/SwingPrompter.java | |
| download | Modulus3D-1c5e38fe69ac8a6decbdd8abe93112f4e3369315.tar.gz Modulus3D-1c5e38fe69ac8a6decbdd8abe93112f4e3369315.tar.bz2 Modulus3D-1c5e38fe69ac8a6decbdd8abe93112f4e3369315.zip | |
added source
Diffstat (limited to 'src/SwingPrompter.java')
| -rw-r--r-- | src/SwingPrompter.java | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/src/SwingPrompter.java b/src/SwingPrompter.java new file mode 100644 index 0000000..7265e9d --- /dev/null +++ b/src/SwingPrompter.java @@ -0,0 +1,27 @@ +/* */ public class SwingPrompter +/* */ implements Runnable +/* */ { +/* 13 */ public static String hold = ""; +/* 14 */ private String[] runArgs = { "" }; +/* 15 */ public static boolean toggle = false; +/* */ +/* */ public static String getPrompt(String[] args) throws Exception { +/* 18 */ SwingPrompter prompt = new SwingPrompter(); +/* 19 */ prompt.runArgs = args; +/* 20 */ Thread run = new Thread(prompt); +/* 21 */ run.start(); +/* 22 */ while (!toggle); +/* 23 */ toggle = false; +/* 24 */ return hold; +/* */ } +/* */ +/* */ public void run() { +/* 28 */ Thread newThread = new Thread(new ThreadGroup(Thread.currentThread().getThreadGroup().getParent(), "Prompt Window"), new RunnablePrompt(this.runArgs)); +/* 29 */ newThread.start(); +/* */ } +/* */ } + +/* Location: Modulus.jar + * Qualified Name: SwingPrompter + * JD-Core Version: 0.6.2 + */
\ No newline at end of file |