Here is what I have so far that works OK except for the hyperlinks. I created a new dialog off the frame. Maybe there's a problem getting to your URL:
private void getHelp(
String fileName) {
JTextPane pane = new JTextPane();
JScrollPane scroller = new JScrollPane();
scroller.getViewport().add(pane);
JDialog dialog = new JDialog(this, "Help", false);
dialog.getContentPane().add(scroller);
dialog.pack();
dialog.setSize(800,500);
dialog.setVisible(true);
try {
java.net.URL url = new java.net.URL("file:///" + System.getProperty("user.dir") + "/" + fileName);
pane.setPage(url);
}
catch (Exception e) {
e.printStackTrace();
}
}