fileSet = new FileSet(file.getName(), file.getParent()+File.separator);
}
fileSet.setStyle(frameType);
try {
ViewFrame tvFrame = openNewNW(fileSet);
tvFrame.setVisible(true);
// tvFrame.loadNW(fileSet);
if (exportType != null) {
try {
attemptExport(exportType, tvFrame);
} catch (ExportException e) {
System.err.println(e.getMessage());
e.printStackTrace(System.err);
}
tvFrame.setVisible(false);
endProgram();
return;
}
} catch (LoadException e) {
e.printStackTrace();