aboutsummaryrefslogtreecommitdiff
path: root/src/RunnablePrompt.java
blob: 6052353b6648e1e092715a45bb8111b976bc4ca2 (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
28
29
30
31
32
33
34
/*    */ import java.awt.event.ActionEvent;
/*    */ import java.awt.event.ActionListener;
/*    */ import javax.swing.JButton;
/*    */ import javax.swing.JTextField;
/*    */ 
/*    */ public class RunnablePrompt
/*    */   implements Runnable, ActionListener
/*    */ {
/*    */   Prompt<JTextField> tempPrompt;
/*    */   String[] args;
/*    */ 
/*    */   public RunnablePrompt(String[] args)
/*    */   {
/* 16 */     this.args = args;
/*    */   }
/*    */   public void run() {
/*    */     try {
/* 20 */       this.tempPrompt = new Prompt(null, ControlPanel.parseOut(this.args[0]), new JTextField[] { new JTextField("", 5) }, this, new JButton("OK"));
/* 21 */       this.tempPrompt.setVisible(true);
/*    */     }
/*    */     catch (Exception e) {
/* 24 */       e.printStackTrace();
/*    */     }
/*    */   }
/*    */ 
/* 28 */   public void actionPerformed(ActionEvent e) { SwingPrompter.hold = ((JTextField)this.tempPrompt.get(0)).getText();
/* 29 */     SwingPrompter.toggle = true;
/*    */   }
/*    */ }

/* Location:           Modulus.jar
 * Qualified Name:     RunnablePrompt
 * JD-Core Version:    0.6.2
 */