// setup toplevel
if (sFilePath != null) {
final String frameType = args.getFrameType();
final String exportType = args.getExportType();
FileSet fileSet;
if (sFilePath.startsWith("http://")) {
fileSet = new FileSet(sFilePath,"");
} else {
File file = new File(sFilePath);
fileSet = new FileSet(file.getName(), file.getParent()+File.separator);
}
fileSet.setStyle(frameType);
try {
ViewFrame tvFrame = openNewNW(fileSet);
tvFrame.setVisible(true);
// tvFrame.loadNW(fileSet);