add(contentpanel, BorderLayout.CENTER);
}
private JEditorPane createEditorPane() {
JEditorPane editorPane = new JEditorPane();
editorPane.setEditable(false);
InstallData data = InstallData.getInstance();
File htmlDirectory = data.getInfoRoot("html");
String licenseFile = ResourceManager.getFileName("String_License_Filename");
if ( htmlDirectory != null) {
File htmlFile = new File(htmlDirectory, licenseFile);
if (! htmlFile.exists()) {
System.err.println("Couldn't find file: " + htmlFile.toString());
}
try {
// System.err.println("URLPath: " + htmlFile.toURL());
editorPane.setContentType("text/html;charset=utf-8");
editorPane.setPage(htmlFile.toURL());
} catch (Exception e) {
e.printStackTrace();
System.err.println("Attempted to read a bad URL");
}
} else {