/[xulu]/trunk/src/appl/parallel/starter/client/XuluStarterControllerFrame.java
ViewVC logotype

Annotation of /trunk/src/appl/parallel/starter/client/XuluStarterControllerFrame.java

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2 - (hide annotations)
Wed Feb 25 11:54:01 2009 UTC (15 years, 9 months ago) by mojays
File size: 968 byte(s)
First Commit, corresponds to Revision 1008 of Wikisquare-SVN 
1 mojays 2 package appl.parallel.starter.client;
2    
3     import java.awt.event.WindowAdapter;
4     import java.awt.event.WindowEvent;
5    
6     import javax.swing.JFrame;
7    
8     import org.apache.log4j.BasicConfigurator;
9    
10     import appl.parallel.starter.Starter;
11    
12     /**
13     * This is a GUI for controlling the {@link Starter Starters} in the network
14     * independent of Xulu.
15     * @author appl
16     *
17     */
18     public class XuluStarterControllerFrame extends JFrame {
19     public XuluStarterControllerFrame() {
20     super("Server starter");
21     this.getContentPane().add(new XuluStarterController().getPanel());
22     this.setSize(300, 400);
23     this.addWindowListener(new ExitListener());
24     }
25    
26     public static void main(String[] args) {
27     BasicConfigurator.configure();
28     XuluStarterControllerFrame clientGUI = new XuluStarterControllerFrame();
29     clientGUI.setVisible(true);
30     }
31    
32     public class ExitListener extends WindowAdapter {
33     public void windowClosing(WindowEvent event) {
34     System.exit(0);
35     }
36     }
37     }

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26