aboutsummaryrefslogtreecommitdiff
path: root/src/SwingPrompter.java
blob: 7265e9dd1817e3ada71cb70bedfa75c1a0394555 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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
 */