• Post Reply Bookmark Topic Watch Topic
  • New Topic

HTML/URL in JTable  RSS feed

 
Kripal Singh
Ranch Hand
Posts: 254
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This might be a newbie question .
I am trying to create JTable with URLs as cells .
Is it possible to set JEditorPane as my table cell editor, and table cell renderer . I think it's possible to Present Html with JEditorPane .Is there any code sample available to do it .
thanks
 
Chantal Ackermann
Ranch Hand
Posts: 508
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
try this
private MyTableCellRenderer extends JEditorPane
{
public Component getTableCellRendererComponent(/* args */)
{
// specify what to do with the value (= URL)
return this;
}
}
chantal
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!