diff options
| author | Joshua Rahm <joshua.rahm@colorado.edu> | 2015-01-30 17:11:48 -0700 |
|---|---|---|
| committer | Joshua Rahm <joshua.rahm@colorado.edu> | 2015-01-30 17:11:48 -0700 |
| commit | 1c5e38fe69ac8a6decbdd8abe93112f4e3369315 (patch) | |
| tree | 926cef8cb76d46862ed2c4ec7028720611e47476 /src/RunnablePrompt.java | |
| download | Modulus3D-1c5e38fe69ac8a6decbdd8abe93112f4e3369315.tar.gz Modulus3D-1c5e38fe69ac8a6decbdd8abe93112f4e3369315.tar.bz2 Modulus3D-1c5e38fe69ac8a6decbdd8abe93112f4e3369315.zip | |
added source
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 |