if (loadedFile == null) {
throw new IllegalArgumentException("Loaded file argument must not be null.");
}
final JFileChooser fc = new JFileChooser();
fc.setFileFilter(new SWFFileFilter());
final File parentFile = loadedFile.getFile().getParentFile();
if (parent != null) {
fc.setCurrentDirectory(parentFile);