{
Log.debug("File not found: " + JFtp.localDir.getPath() +
StringUtils.getFile(url));
}
HFrame f = new HFrame();
f.setTitle(url);
JEditorPane pane = new JEditorPane("file://" +
file.getAbsolutePath());
if(!pane.getEditorKit().getContentType().equals("text/html") &&
!pane.getEditorKit().getContentType().equals("text/rtf"))
{
if(!pane.getEditorKit().getContentType().equals("text/plain"))
{
Log.debug("Nothing to do with this filetype - use the buttons if you want to transfer files.");
return;
}
pane.setEditable(false);
}
JScrollPane jsp = new JScrollPane(pane);
f.getContentPane().setLayout(new BorderLayout());
f.getContentPane().add("Center", jsp);
f.setModal(false);
f.setLocation(100, 100);
f.setSize(600, 400);
//f.pack();
f.show();
dList.fresh();
JFtp.localDir.getCon().removeFileOrDir(StringUtils.getFile(url));
JFtp.localDir.fresh();
}