mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/jpexs-decompiler.git
synced 2026-07-14 13:39:35 +00:00
Set parent component for Save/Open file dialogs
This commit is contained in:
@@ -291,9 +291,7 @@ public class AdvancedSettingsDialog extends AppDialog {
|
||||
fc.setFileFilter(allSupportedFilter);
|
||||
|
||||
fc.setAcceptAllFileFilterUsed(false);
|
||||
JFrame f = new JFrame();
|
||||
View.setWindowIcon(f);
|
||||
int returnVal = fc.showOpenDialog(f);
|
||||
int returnVal = fc.showOpenDialog(Main.getDefaultMessagesComponent());
|
||||
if (returnVal == JFileChooser.APPROVE_OPTION) {
|
||||
return Helper.fixDialogFile(fc.getSelectedFile()).getAbsolutePath();
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user