diff options
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 |