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

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