will not take operations when cancel the file chooser

This commit is contained in:
huangyuhui
2017-02-26 21:45:39 +08:00
parent 926e276167
commit 0fc7eb6316
4 changed files with 6 additions and 16 deletions

View File

@@ -33,7 +33,7 @@ public class JSystemFileChooser extends JFileChooser {
public JSystemFileChooser() {
super();
}
public JSystemFileChooser(File f) {
super(f);
}
@@ -49,15 +49,10 @@ public class JSystemFileChooser extends JFileChooser {
super.updateUI();
if (old != null) {
Color background = UIManager.getColor("Label.background");
setBackground(background);
setOpaque(true);
if (old != null)
try {
UIManager.setLookAndFeel(old);
} catch (UnsupportedLookAndFeelException ignored) {
}
}
}
}