Results 1 to 2 of 2
  1. #1
    GabrielBB is offline Java<33
    Join Date
    Oct 2012
    Location
    Santo Domingo, Dominican Republic
    Posts
    8
    Rep Power
    0

    Post How to add HTML to a HTMLDocument in a JEditorPane

    HTMLDocument doc = new HTMLDocument();
    jEditorPane.setDocument(doc);

    Please help, how to insert HTML text to that Document ?

  2. #2
    DarrylBurke's Avatar
    DarrylBurke is offline Moderator
    Join Date
    Sep 2008
    Location
    Madgaon, Goa, India
    Posts
    9,918
    Rep Power
    16

    Default Re: How to add HTML to a HTMLDocument in a JEditorPane

    Moved from Advanced Java.

    Have you gone through the Oracle tutorial on using text components?

    db
    Why do they call it rush hour when nothing moves? - Robin Williams

Similar Threads

  1. using href for JEditorpane reading html file
    By crozarius in forum Advanced Java
    Replies: 0
    Last Post: 04-13-2011, 07:08 PM
  2. Format editing in HTML view with JEditorPane
    By peterme in forum Advanced Java
    Replies: 4
    Last Post: 02-23-2011, 09:05 PM
  3. HTML and CSS in JEditorPane.setPage
    By mine0926 in forum New To Java
    Replies: 4
    Last Post: 09-22-2010, 09:21 AM
  4. JEditorPane, HTML 4.0, CSS, custom Tags
    By AndreB in forum AWT / Swing
    Replies: 4
    Last Post: 12-22-2009, 10:45 AM
  5. jeditorpane help parsing html
    By asifsolkar in forum Advanced Java
    Replies: 4
    Last Post: 12-14-2007, 05:23 AM

Tags for this Thread

Posting Permissions

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