/Users/lyon/j4p/src/classUtils/delegate/Main.java

1    package classUtils.delegate; 
2     
3    import net.rmi.armi.HelloWorld; 
4     
5    import java.util.Date; 
6    import java.util.Vector; 
7     
8    /** 
9     Main.class 
10    1. interactively resolve ambiguous invokes using GUI 
11    2. make topologic sorting an option for resolution or let 
12    user select a method to resolve ambiguity 
13    3. add exception handling to the sythesized wrappers 
14    4. output to a file 
15    5. compile the file 
16    */ 
17    
18   public class Main { 
19       public Main() { 
20           try { 
21               DelegateGui dg = new DelegateGui(); 
22               // the following code sets the frame's initial state 
23               dg.init(); 
24               Vector v = new Vector(); 
25               v.addElement(new HelloWorld()); 
26               v.addElement(new Date()); 
27               dg.setInstanceList(v); 
28               dg.setVisible(true); 
29           } catch (Exception e) { 
30               e.printStackTrace(); 
31           } 
32       } 
33    
34       // Main entry point 
35       static public void main(String[] args) { 
36           new Main(); 
37       } 
38    
39   } 
40