• Post Reply Bookmark Topic Watch Topic
  • New Topic

how to show html text in JTable Cell

 
sac kul
Greenhorn
Posts: 8
  • Mark post as helpful
  • send pies
  • 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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!