Add radio button for default temp directory.
authorDavid ‘Bombe’ Roden <bombe@freenetproject.org>
Mon, 21 Dec 2009 21:20:53 +0000 (22:20 +0100)
committerDavid ‘Bombe’ Roden <bombe@freenetproject.org>
Mon, 21 Dec 2009 21:20:53 +0000 (22:20 +0100)
src/de/todesbaum/jsite/gui/PreferencesPage.java
src/de/todesbaum/jsite/i18n/jSite.properties

index 97782fa..a7004aa 100644 (file)
@@ -29,6 +29,7 @@ import javax.swing.AbstractAction;
 import javax.swing.Action;
 import javax.swing.JLabel;
 import javax.swing.JPanel;
+import javax.swing.JRadioButton;
 
 import de.todesbaum.jsite.i18n.I18n;
 import de.todesbaum.jsite.i18n.I18nContainer;
@@ -147,6 +148,9 @@ public class PreferencesPage extends TWizardPage {
                final JLabel tempDirectoryLabel = new JLabel("<html><b>" + I18n.getMessage("jsite.preferences.temp-directory") + "</b></html>");
                tempDirectoryPanel.add(tempDirectoryLabel, new GridBagConstraints(0, 0, 1, 1, 1.0, 0.0, GridBagConstraints.LINE_START, GridBagConstraints.BOTH, new Insets(0, 0, 0, 0), 0, 0));
 
+               final JRadioButton defaultTempDirectory = new JRadioButton(I18n.getMessage("jsite.preferences.temp-directory.default"));
+               tempDirectoryPanel.add(defaultTempDirectory, new GridBagConstraints(0, 1, 1, 1, 1.0, 0.0, GridBagConstraints.LINE_START, GridBagConstraints.BOTH, new Insets(6, 18, 0, 0), 0, 0));
+
                I18nContainer.getInstance().registerRunnable(new Runnable() {
 
                        /**
@@ -155,6 +159,7 @@ public class PreferencesPage extends TWizardPage {
                        @Override
                        public void run() {
                                tempDirectoryLabel.setText("<html><b>" + I18n.getMessage("jsite.preferences.temp-directory") + "</b></html>");
+                               defaultTempDirectory.setText(I18n.getMessage("jsite.preferences.temp-directory.default"));
                        }
                });
 
index c4c28d2..df355c8 100644 (file)
@@ -67,6 +67,7 @@ jsite.node-manager.port=Port
 jsite.preferences.heading=Preferences
 jsite.preferences.description=Use this page to manage some global settings.
 jsite.preferences.temp-directory=Temporary Directory
+jsite.preferences.temp-directory.default=Default
 
 jsite.insert.heading=Project insert
 jsite.insert.description=Please wait while the project is being inserted.