Add button group for the radio buttons.
authorDavid ‘Bombe’ Roden <bombe@freenetproject.org>
Mon, 21 Dec 2009 21:25:55 +0000 (22:25 +0100)
committerDavid ‘Bombe’ Roden <bombe@freenetproject.org>
Mon, 21 Dec 2009 21:25:55 +0000 (22:25 +0100)
src/de/todesbaum/jsite/gui/PreferencesPage.java

index c1a6dbc..eca390e 100644 (file)
@@ -27,6 +27,7 @@ import java.awt.event.ActionEvent;
 
 import javax.swing.AbstractAction;
 import javax.swing.Action;
+import javax.swing.ButtonGroup;
 import javax.swing.JLabel;
 import javax.swing.JPanel;
 import javax.swing.JRadioButton;
@@ -154,6 +155,10 @@ public class PreferencesPage extends TWizardPage {
                final JRadioButton customTempDirectory = new JRadioButton(I18n.getMessage("jsite.preferences.temp-directory.custom"));
                tempDirectoryPanel.add(customTempDirectory, new GridBagConstraints(0, 2, 1, 1, 1.0, 0.0, GridBagConstraints.LINE_START, GridBagConstraints.BOTH, new Insets(0, 18, 0, 0), 0, 0));
 
+               ButtonGroup tempDirectoryButtonGroup = new ButtonGroup();
+               defaultTempDirectory.getModel().setGroup(tempDirectoryButtonGroup);
+               customTempDirectory.getModel().setGroup(tempDirectoryButtonGroup);
+
                I18nContainer.getInstance().registerRunnable(new Runnable() {
 
                        /**