/Users/lyon/j4p/src/gui/htmlconverter/FileControlPanel.java

1    package gui.htmlconverter; 
2     
3    import java.awt.*; 
4     
5    public class FileControlPanel extends Panel { 
6     
7        FileControlField fcf1, fcf2; 
8        Checkbox justOneCB = new Checkbox("process Just one file"); 
9     
10       FileControlPanel() { 
11           fcf1 = new FileControlField("Input :", ""); 
12           fcf2 = new FileControlField("Output:", ""); 
13           setLayout(new GridLayout(2, 1)); 
14    
15           add(fcf1); 
16    
17           add(fcf2); 
18    
19       } 
20   // WHY IS THIS DONE DL 4/26/98 
21   //  public void actionPerformed(ActionEvent e) { 
22   //      if (e.getSource() == justOneCB) return true; 
23   //      super.actionPerformed(e); 
24    
25   //  } 
26    
27       public String[] getFileNames() { 
28           String[] s = new String[2]; 
29           s[0] = fcf1.getText(); 
30           s[1] = fcf2.getText(); 
31           return s; 
32       } 
33    
34       public void setText(String t) { 
35           fcf1.setText(t + ((J2Html) 
36                   getParent()).getExtention()); 
37           fcf2.setText(t + ".gui.html"); 
38       } 
39    
40   } 
41