Win a copy of The Way of the Web Tester: A Beginner's Guide to Automating Tests this week in the Testing forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JTable- Table Cell Renderers- Urgent

Aishu Raj
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I am developing an application in JTable where I have to display dynamic datas.
At Column 0 i have a renderer with JLabel with an icon. When i click that icon(say at row 1) some rows have to inserted and the clicked row moves down(say to row 4). I need to put a different icon to column 0 of the 4 th row.
I have used DefaultTableCell Renderer and how can i set the icon at the particular row dynamically. I tried with setValue(Object,int,int).

Its also not working.

help me to find a solution as early as possible.
With Regards,
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic