/Users/lyon/j4p/src/ip/gui/dialog/RayleighLog.java

1    package ip.gui.dialog; 
2     
3    import ip.gui.frames.NegateFrame; 
4     
5    import java.awt.event.ActionEvent; 
6     
7    public class RayleighLog extends 
8            DoubleLog { 
9        private NegateFrame parent; 
10    
11       public RayleighLog( 
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.rnahe(dui[0]); 
27               System.out.println("Invoking rnahe"); 
28               return; 
29           } 
30           super.actionPerformed(e); 
31       } 
32   } 
33