diff options
author | Phillip <pacardon@u.washington.edu> | 2011-02-23 23:13:00 +0000 |
---|---|---|
committer | Phillip <pacardon@u.washington.edu> | 2011-02-23 23:13:00 +0000 |
commit | 9b1879614d5ce77db28c0e55a314dd075775b618 (patch) | |
tree | c827684edba19582b29d491f5626b2745311ac1d /src/tesseract/newmenu/NewToroidMenuItem.java | |
parent | 4245f4ac7475345162e484b79341cdff3b1710f4 (diff) |
fixed an issue that caused multiple objects to appear PER parameter frame call.
One call would result in one object, adding a second object of the same type would then result in creating TWO more objects for a total of three, etc.
Diffstat (limited to 'src/tesseract/newmenu/NewToroidMenuItem.java')
-rw-r--r-- | src/tesseract/newmenu/NewToroidMenuItem.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/tesseract/newmenu/NewToroidMenuItem.java b/src/tesseract/newmenu/NewToroidMenuItem.java index 1ab20b7..6963c7f 100644 --- a/src/tesseract/newmenu/NewToroidMenuItem.java +++ b/src/tesseract/newmenu/NewToroidMenuItem.java @@ -63,6 +63,12 @@ public class NewToroidMenuItem extends MenuItem { public void actionPerformed(final ActionEvent e) {
this.getParamFrame().pack();
this.getParamFrame().setVisible(true);
+ }
+
+ /**
+ * makeListeners and attach to buttons.
+ */
+ private void makeListeners() {
final JButton defaultButton = getDefaultButton();
final JFrame params = getParamFrame();
final JButton enterButton = getEnterButton();
|