From 1c5e38fe69ac8a6decbdd8abe93112f4e3369315 Mon Sep 17 00:00:00 2001 From: Joshua Rahm Date: Fri, 30 Jan 2015 17:11:48 -0700 Subject: added source --- src/RunnablePrompt.java | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 src/RunnablePrompt.java (limited to 'src/RunnablePrompt.java') 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 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 -- cgit