Fix FileChooser Extensions
This commit is contained in:
parent
62726dcd4f
commit
9df47b0fe7
1 changed files with 2 additions and 0 deletions
|
@ -6,6 +6,7 @@ import the.bytecode.club.bytecodeviewer.util.MiscUtils;
|
||||||
import javax.swing.*;
|
import javax.swing.*;
|
||||||
import javax.swing.filechooser.FileFilter;
|
import javax.swing.filechooser.FileFilter;
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
|
import java.util.Arrays;
|
||||||
import java.util.HashSet;
|
import java.util.HashSet;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -26,6 +27,7 @@ public class FileChooser extends JFileChooser
|
||||||
this.title = title;
|
this.title = title;
|
||||||
this.description = description;
|
this.description = description;
|
||||||
this.extensions = extensions;
|
this.extensions = extensions;
|
||||||
|
this.extensionSet.addAll(Arrays.asList(extensions));
|
||||||
|
|
||||||
try {
|
try {
|
||||||
if (filePath.exists())
|
if (filePath.exists())
|
||||||
|
|
Loading…
Reference in a new issue