Add stub for creating the preferences panel.
authorDavid ‘Bombe’ Roden <bombe@freenetproject.org>
Mon, 21 Dec 2009 21:01:25 +0000 (22:01 +0100)
committerDavid ‘Bombe’ Roden <bombe@freenetproject.org>
Mon, 21 Dec 2009 21:01:25 +0000 (22:01 +0100)
src/de/todesbaum/jsite/gui/PreferencesPage.java

index 791c139..eeac468 100644 (file)
 
 package de.todesbaum.jsite.gui;
 
+import java.awt.BorderLayout;
 import java.awt.event.ActionEvent;
 
 import javax.swing.AbstractAction;
 import javax.swing.Action;
+import javax.swing.JPanel;
 
 import de.todesbaum.jsite.i18n.I18n;
 import de.todesbaum.jsite.i18n.I18nContainer;
@@ -68,6 +70,8 @@ public class PreferencesPage extends TWizardPage {
         */
        private void pageInit() {
                createActions();
+               setLayout(new BorderLayout(12, 12));
+               add(createPreferencesPanel(), BorderLayout.CENTER);
        }
 
        /**
@@ -94,6 +98,16 @@ public class PreferencesPage extends TWizardPage {
        }
 
        /**
+        * Creates the panel containing all preferences.
+        *
+        * @return The preferences panel
+        */
+       private JPanel createPreferencesPanel() {
+               JPanel preferencesPanel = new JPanel(new BorderLayout(12, 12));
+               return preferencesPanel;
+       }
+
+       /**
         * Lets the user choose a new temp directory.
         */
        private void chooseTempDirectory() {