From a71fce576872fc9192d19e846506590303aa1384 Mon Sep 17 00:00:00 2001 From: Blockmebob Date: Tue, 9 May 2017 15:35:28 -0400 Subject: [PATCH] MainWindow.java : Select Save Directory Crash Fix (#523) Fixes bug in Java that arose in Windows 10 Creator Update. Caused the user to be unable to select directory with Windows Look & Feel enabled due to crashing. Disabling System Extension Hiding is currently the workaround suggested by Java devs. See here: https://bugs.openjdk.java.net/browse/JDK-8179014 --- src/main/java/com/rarchives/ripme/ui/MainWindow.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/com/rarchives/ripme/ui/MainWindow.java b/src/main/java/com/rarchives/ripme/ui/MainWindow.java index 3a37f621..df2701d2 100644 --- a/src/main/java/com/rarchives/ripme/ui/MainWindow.java +++ b/src/main/java/com/rarchives/ripme/ui/MainWindow.java @@ -709,6 +709,7 @@ public class MainWindow implements Runnable, RipStatusHandler { configSaveDirButton.addActionListener(new ActionListener() { @Override public void actionPerformed(ActionEvent arg0) { + UIManager.put("FileChooser.useSystemExtensionHiding", false); JFileChooser jfc = new JFileChooser(Utils.getWorkingDirectory()); jfc.setFileSelectionMode(JFileChooser.DIRECTORIES_ONLY); int returnVal = jfc.showDialog(null, "select directory");