Hi all
I don't know whether anyone can help me with this but I have a simple help facility in my application that reads an html file into a JEditorPane which is added to a JScrollPane and then the scroll pane is displyed on the screen in a JFrame.
So far so good - the html file is read in and all appears on the screen excatly as I want it to be. The problem is that the file contains several hyperlinks that should allow the user to jump around in the file without having to scroll up and down but I can't work out how to select the hyperlinks in the first place.
The api documents the key presses to use but I think I am right in thinking that the JEditorPane needs to have focus for these to work. I added a DefaultFocusTraversalPolicy to the editor pane but this had no effect, the screen is still unresponsive.
If anyone has any ideas on this I'd be very grateful.
Thanks
Sam