Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

setting color of a selected cell in a JTable

843804Jan 4 2005 — edited Jan 5 2005
as the title suggests i am wanting to be able to get a selected cell and then change the background color of it.

but am unsure on how to do it.

also is there anyway to set a table so that the cells cant be edited, as i am using the table as a kind of crude JList. and want to addRows to it and remove rows but not allow the user to click on a cell and edit it directly

thanks in advance
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 2 2005
Added on Jan 4 2005
7 comments
458 views