Can someone give me an example of how to set background color of a particular cell in a JTable for a given row and column index? I am unable to find an example of how to do this. Plenty of examples on getting the value in a cell, but not the background color of a cell.
Asked
Active
Viewed 38 times
0
-
1Are you trying to set the color, or get it, or both? – splungebob May 15 '14 at 20:02
-
get the value at the cell and set the cell color according to the cell value – Kavinda Gehan May 15 '14 at 20:04
-
1check http://docs.oracle.com/javase/tutorial/uiswing/components/table.html – A Stranger May 16 '14 at 13:29