JDK-4841903 : JTable.setEnabled(false) does not alter its visual representation
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 1.4.0_02
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: generic
  • CPU: generic
  • Submitted: 2003-04-03
  • Updated: 2007-04-20
  • Resolved: 2004-09-24
Related Reports
Duplicate :  
Description
I have a JTable that is associated with a radio button, and I want it to be disabled unless that radio button is selected.  So I call myJTable.setEnabled(false) to disable it, and that works ok, but the JTable doesn't *look* disabled; the column headers and data in the table look normal, as if they are selectable or even editable.
So I guess I have to walk through the header, etc. of the table and set each of those to disabled, or some other trick to make it look that way?  I will try, but I shouldn't have to, as a disabled JTable should appear to the user as if it is disabled.

Comments
EVALUATION Confirmed, JTable does not alter its appearance to when disabled. It should. ###@###.### 2003-04-07 Will deal with this under earlier bug, 4795987. ###@###.### 2004-09-24
07-04-2003