diff options
Diffstat (limited to 'src/RunnablePrompt.java')
| -rw-r--r-- | src/RunnablePrompt.java | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/src/RunnablePrompt.java b/src/RunnablePrompt.java new file mode 100644 index 0000000..6052353 --- /dev/null +++ b/src/RunnablePrompt.java @@ -0,0 +1,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 + */
\ No newline at end of file |