/[xulu]/trunk/src/appl/ext/ConfigurationEditor.java
ViewVC logotype

Contents of /trunk/src/appl/ext/ConfigurationEditor.java

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2 - (show annotations)
Wed Feb 25 11:54:01 2009 UTC (15 years, 9 months ago) by mojays
File size: 1499 byte(s)
First Commit, corresponds to Revision 1008 of Wikisquare-SVN 
1 package appl.ext;
2
3 import javax.swing.SwingUtilities;
4 import java.awt.BorderLayout;
5 import javax.swing.JPanel;
6 import javax.swing.JFrame;
7 import javax.swing.WindowConstants;
8 import java.awt.Dimension;
9
10 /**
11 * Displays the {@link XuluConfig} in a frame based using the
12 * {@link ConfigurationEditorEngine}. This class is independent of Xulu and may
13 * be used separately.
14 *
15 * @author Dominik Appl
16 */
17 public class ConfigurationEditor extends JFrame {
18
19 private static final long serialVersionUID = 1L;
20
21 private JPanel jContentPane = null;
22
23 /**
24 * @param args
25 */
26 public static void main(String[] args) {
27 // TODO Auto-generated method stub
28 SwingUtilities.invokeLater(new Runnable() {
29 public void run() {
30 ConfigurationEditor thisClass = new ConfigurationEditor();
31 thisClass.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
32 thisClass.setVisible(true);
33 }
34 });
35 }
36
37 /**
38 * This is the default constructor
39 */
40 public ConfigurationEditor() {
41 super();
42 initialize();
43 }
44
45 /**
46 * This method initializes this
47 *
48 * @return void
49 */
50 private void initialize() {
51 this.setSize(621, 445);
52 this.setDefaultCloseOperation(WindowConstants.DISPOSE_ON_CLOSE);
53 this.setContentPane(new ConfigurationEditorEngine().getGUI());
54 this.setTitle("Xulu Configuration Editor");
55 }
56
57 public void dispose() {
58 XuluConfig.getXuluConfig().store();
59 System.exit(0);
60 }
61
62 } // @jve:decl-index=0:visual-constraint="10,10"

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26