Hi, folks. We have a security-conscious application where components are enabled/disabled depending on the rights assigned to users. In many cases, we want to provide read-only access to certain components. We check the user's permissions at runtime, and enable, disable, or hide the component accordingly. Our problem is this: the rendering of disabled text is faint and difficult to read. Some users will be looking at disabled text all day, and we need it to be readable. We were hoping to indicate the read-only-ness to the user by displaying black text on a gray background. I have been successful in setting the background color of a disabled text component. However, it looks like Swing is disregarding the color I pass to setForeground() when the component is disabled. If necessary, I know we can use setEditable( false) to prevent changing the contents of these fields. We were hoping to use setEnabled() so that we could use the same call for all components. Is this possible and practical? Thanks for any advice. - Keith _______________________________________________ Swing mailing list [EMAIL PROTECTED] http://eos.dk/mailman/listinfo/swing
