A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
RabbitMQ in Depth
this week in the
Swing / AWT / SWT
Disable certain rows in a JTable
Joined: Jun 02, 2000
Oct 10, 2002 08:55:00
I thought this would be trivial, but it's not! I just want to disable certain rows of a
from being selected and to make them grayed out to appear uneditable to the user. Any ideas?
Joined: May 17, 2001
Oct 10, 2002 16:56:00
You make them non-editable with isCellEditable() of your model. The color with a renderer.
I agree. Here's the link:
subject: Disable certain rows in a JTable
Formatting a JTable
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015