Results 1 to 2 of 2
  1. #1
    ni4ni is offline Member
    Join Date
    Mar 2011
    Rep Power

    Default Showing html in JTextPane directly from a String


    I have a JTextPane and I want to show an html page in it. But I don't want to use setPage() because the html page is not on a web server or a filesystem file but in a String variable.

    If I have a String variable containing some html code, How can I display this in a JTextPane as an html page directly (without writing the string into a file) ?

    This JTextPane is becoming a JTextPain for me....



  2. #2
    KevinWorkman's Avatar
    KevinWorkman is offline Crazy Cat Lady
    Join Date
    Oct 2010
    Washington, DC
    Rep Power

Similar Threads

  1. Socket, html not showing in all browsers
    By zardos in forum Networking
    Replies: 0
    Last Post: 03-04-2011, 07:13 PM
  2. jTextPane doesn't show HTML
    By indra-uolles in forum AWT / Swing
    Replies: 5
    Last Post: 08-31-2010, 02:29 PM
  3. LineNumber JTextPane html Content
    By mcjava in forum AWT / Swing
    Replies: 3
    Last Post: 08-31-2009, 02:38 AM
  4. Showing ResultSet in HTML table
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 01-27-2008, 08:09 PM
  5. how to show a html document on JTextPane
    By mary in forum Advanced Java
    Replies: 2
    Last Post: 08-02-2007, 01:40 PM

Posting Permissions

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