JEditorPane openPane = new JEditorPane();
openPane.setContentType("text/plain");
JScrollPane scrollpane = new JScrollPane(openPane);
openPane.setName(openFS.getSelectedFile().toString());
Font editofont2 = new Font("Monospaced", Font.PLAIN, 14);
openPane.setFont(editofont2);
String OpenFileURL = "file:///" + openFS.getSelectedFile().toString();
try {
openPane.setPage(OpenFileURL);
} catch (IOException e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
}