From e70cd821d43cd3b9bd3d9532d721eb171f6fa9ee Mon Sep 17 00:00:00 2001 From: Laurent Clouet Date: Mon, 2 Feb 2015 22:43:42 +0000 Subject: [PATCH] Improvement: add a warning message for working directory (the graphical ui does not have the manual as ui text) --- src/com/sheepit/client/standalone/swing/activity/Settings.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/com/sheepit/client/standalone/swing/activity/Settings.java b/src/com/sheepit/client/standalone/swing/activity/Settings.java index 92c5f47..12998d7 100644 --- a/src/com/sheepit/client/standalone/swing/activity/Settings.java +++ b/src/com/sheepit/client/standalone/swing/activity/Settings.java @@ -11,6 +11,7 @@ import javax.swing.JButton; import javax.swing.JCheckBox; import javax.swing.JFileChooser; import javax.swing.JLabel; +import javax.swing.JOptionPane; import javax.swing.JPasswordField; import javax.swing.JTextField; import com.sheepit.client.Configuration; @@ -173,6 +174,7 @@ public class Settings implements Activity { @Override public void actionPerformed(ActionEvent arg0) { + JOptionPane.showMessageDialog(parent.getContentPane(), "The working directory has to be dedicated directory.
Caution, everything not related to SheepIt-Renderfarm will be removed.
You should create a directory specifically for it.", "Warning: files will be removed!", JOptionPane.WARNING_MESSAGE); int returnVal = cacheDirChooser.showOpenDialog(parent.getContentPane()); if (returnVal == JFileChooser.APPROVE_OPTION) { File file = cacheDirChooser.getSelectedFile();