Results 1 to 1 of 1
  1. #1
    crozarius is offline Member
    Join Date
    Apr 2011
    Rep Power

    Default using href for JEditorpane reading html file


    I'm new to the forums. Hopefully i am posting this in the right place.

    I have a simple program that reads an html file and sets it on a JEditorpane. The JEditorpane is then put on a JScrollPane.

    I would like to be able to click on the href and have it scroll to a section in the html file. It works when I open the html file in a web browser,but not when I click on it when i run it in eclipse.

    I've tried some google searches to find information on my issue,but haven't had much luck. Any help would be great (especially if you have a good site to read up on this stuff)

    >.> eclipse was kindly telling me why it wasn't work. Sorry for wasting time with a post.
    Attached Files Attached Files
    Last edited by crozarius; 04-13-2011 at 08:00 PM.

Similar Threads

  1. HTML and CSS in JEditorPane.setPage
    By mine0926 in forum New To Java
    Replies: 4
    Last Post: 09-22-2010, 09:21 AM
  2. JEditorPane, HTML 4.0, CSS, custom Tags
    By AndreB in forum AWT / Swing
    Replies: 4
    Last Post: 12-22-2009, 10:45 AM
  3. reading an Html file and checking for urls
    By sudukrish in forum Advanced Java
    Replies: 1
    Last Post: 04-25-2009, 01:39 AM
  4. Problem in reading HTML input field while uploading file
    By sudipanand in forum Java Servlet
    Replies: 1
    Last Post: 11-27-2008, 09:26 AM
  5. jeditorpane help parsing html
    By asifsolkar in forum Advanced Java
    Replies: 4
    Last Post: 12-14-2007, 05:23 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts