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

Annotation of /trunk/src/appl/parallel/starter/client/StarterClientGUI.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: 1148 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     * It has options to start/stop and restart selected servers.
15     * @author Dominik Appl
16     *
17     */
18     public class StarterClientGUI extends JFrame {
19     /**
20     * Creates a new GUI
21     */
22     public StarterClientGUI() {
23     super("Server starter");
24     this.getContentPane().add(new XuluStarterController().getPanel());
25     this.setSize(300, 400);
26     this.addWindowListener(new ExitListener());
27     }
28    
29     /**
30     * @param args no arguments interpreted
31     */
32     public static void main(String[] args) {
33     BasicConfigurator.configure();
34     StarterClientGUI clientGUI = new StarterClientGUI();
35     clientGUI.setVisible(true);
36     }
37    
38     /**
39     * Shuts down the application on exit
40     *
41     * @author Dominik Appl
42     */
43     public class ExitListener extends WindowAdapter {
44     public void windowClosing(WindowEvent event) {
45     System.exit(0);
46     }
47     }
48     }

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26