From 2cce835358415ae38dfc3a1b2d36bec19703cfc2 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Mon, 21 Dec 2009 22:25:55 +0100 Subject: [PATCH] Add button group for the radio buttons. --- src/de/todesbaum/jsite/gui/PreferencesPage.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/de/todesbaum/jsite/gui/PreferencesPage.java b/src/de/todesbaum/jsite/gui/PreferencesPage.java index c1a6dbc..eca390e 100644 --- a/src/de/todesbaum/jsite/gui/PreferencesPage.java +++ b/src/de/todesbaum/jsite/gui/PreferencesPage.java @@ -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() { /** -- 2.7.4