/Users/lyon/j4p/src/ip/gui/dialog/ExponentialLog.java
|
1 package ip.gui.dialog;
2
3 import ip.gui.frames.NegateFrame;
4
5 import java.awt.event.ActionEvent;
6
7 public class ExponentialLog extends
8 DoubleLog {
9 private NegateFrame parent;
10
11 public ExponentialLog(
12 NegateFrame _parent,
13 String title,
14 String prompts[],
15 String defaults[],
16 int fieldSize) {
17 super(_parent, title, prompts, defaults, fieldSize);
18 parent = _parent;
19 setButton.addActionListener(this);
20 cancelButton.addActionListener(this);
21 }
22
23 public void actionPerformed(ActionEvent e) {
24 if (e.getSource() == setButton) {
25 double dui[] = getUserInputAsDouble();
26 parent.enahe(dui[0]);
27 return;
28 }
29 super.actionPerformed(e);
30
31 }
32 }
33