File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
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.
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