Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to color for particular row in a JTable  RSS feed

 
prasanna kanth
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I need a help on this topic please help me if any one have idea

I am using the JTable in my application, which need to highlight when the users change, like if amount is grater then 15,000 then green, less yellow like this, I found some code in the net but i could't able to implement it into my code,

if you provide some sample code it will be appriciated

Thanks & Regards,
PrasannA

[ May 14, 2006: Message edited by: prasanna kanth ]
[ May 14, 2006: Message edited by: prasanna kanth ]
 
Suman Mummaneni
Ranch Hand
Posts: 96
Android Java Mac
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You need to look at javax.swing.table package. You need to implemetn your own TableCellRenderer or TableCellEditor.
Here is a small tutorial from Sun. It helped me a lot.
How to use JTable
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!