• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

displaying html in JTextPane of JDK 1.1.8

 
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi
i need to display html content in JTextPane of JDK1.1.8.for that i coded as follows:
....
....
String text="<html><body>‘ Hi,Manjit’</body></html>";
JTextPane tp = new JTextPane();
tp.setContentType("text/html");
tp.setText(text);
....
but its not converting the special character as expected.
same code fragment is working for JDK1.4.
Any clue.
Thanks
 
Yes, my master! Here is the tiny ad you asked for:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic