From: David ‘Bombe’ Roden Date: Mon, 21 Dec 2009 21:01:25 +0000 (+0100) Subject: Add stub for creating the preferences panel. X-Git-Tag: 0.8~34 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=eb84ac62c3e92522af0cf686e67d7815945d7293;p=jSite.git Add stub for creating the preferences panel. --- diff --git a/src/de/todesbaum/jsite/gui/PreferencesPage.java b/src/de/todesbaum/jsite/gui/PreferencesPage.java index 791c139..eeac468 100644 --- a/src/de/todesbaum/jsite/gui/PreferencesPage.java +++ b/src/de/todesbaum/jsite/gui/PreferencesPage.java @@ -19,10 +19,12 @@ 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() {