• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

how to show html text in JTable Cell

 
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello !
I want to show html text in column of JTable. But I don't
want to show html tags in cell.
I use the following code,

public class TagStripper extends HTMLEditorKit.ParserCallback {
public void setData(String data) {
this.data = data;
}
public String data = "";
public String getData() {
return data;
}
public TagStripper() {
}
public void handleText(char[] text, int position) {
for (int i = 0; i < text.length; i++) {
data = data + text[i];
}
}
}
It works, but while fetching the data from the cell I want the
html tags??
sachin.
 
reply
    Bookmark Topic Watch Topic
  • New Topic