From: David ‘Bombe’ Roden Date: Tue, 22 Dec 2009 17:07:47 +0000 (+0100) Subject: Set button to inactive on creation if no temp directory is used. X-Git-Tag: 0.8~18 X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=b46b4162f2aaf30154a136f428329d829ee445da;p=jSite.git Set button to inactive on creation if no temp directory is used. --- diff --git a/src/de/todesbaum/jsite/gui/PreferencesPage.java b/src/de/todesbaum/jsite/gui/PreferencesPage.java index 22b478a..a5fa43a 100644 --- a/src/de/todesbaum/jsite/gui/PreferencesPage.java +++ b/src/de/todesbaum/jsite/gui/PreferencesPage.java @@ -202,6 +202,7 @@ public class PreferencesPage extends TWizardPage { } else { defaultTempDirectory.setSelected(true); } + chooseTempDirectoryAction.setEnabled(tempDirectory != null); tempDirectoryPanel.add(tempDirectoryTextField, new GridBagConstraints(1, 2, 1, 1, 1.0, 0.0, GridBagConstraints.LINE_START, GridBagConstraints.BOTH, new Insets(0, 6, 0, 0), 0, 0)); JButton chooseButton = new JButton(chooseTempDirectoryAction);