add about dialog
[jSite2.git] / src / net / pterodactylus / jsite / gui / SwingInterface.java
index 54dec0d..e98fa80 100644 (file)
@@ -76,6 +76,9 @@ public class SwingInterface implements CoreListener {
        /** The “add project” action. */
        private I18nAction addProjectAction;
 
+       /** The “about” dialog. */
+       private AboutDialog aboutDialog;
+
        /** The list of all defined nodes. */
        private List<Node> nodeList;
 
@@ -88,6 +91,9 @@ public class SwingInterface implements CoreListener {
        public SwingInterface(Core core) {
                this.core = core;
                I18n.setLocale(Locale.ENGLISH); /* TODO - load config */
+               System.setProperty("swing.aatext", "true");
+               System.setProperty("swing.plaf.metal.controlFont", "Tahoma");
+               System.setProperty("swing.plaf.metal.userFont", "Tahoma");
                initActions();
                initDialogs();
        }
@@ -318,6 +324,7 @@ public class SwingInterface implements CoreListener {
         */
        private void initDialogs() {
                manageNodesDialog = new ManageNodesDialog(this);
+               aboutDialog = new AboutDialog(this);
        }
 
        //
@@ -384,6 +391,7 @@ public class SwingInterface implements CoreListener {
         * Shows the “about” dialog.
         */
        private void helpAbout() {
+               aboutDialog.setVisible(true);
        }
 
        /**