From: David ‘Bombe’ Roden Date: Mon, 21 Dec 2009 21:25:55 +0000 (+0100) Subject: Add button group for the radio buttons. X-Git-Tag: 0.8~26 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=2cce835358415ae38dfc3a1b2d36bec19703cfc2;p=jSite.git Add button group for the radio buttons. --- 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() { /**