JDK-6406864 : WinLAF:Text appears enabled in disabled toggle button.
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 5.0,6
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • OS: windows_xp
  • CPU: x86
  • Submitted: 2006-03-31
  • Updated: 2010-04-02
  • Resolved: 2006-07-19
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other JDK 6
5.0u9Fixed 6 b92Fixed
Related Reports
Duplicate :  
Duplicate :  
Description
Bug Info:
=========
Text appears enabled in disabled toggle button.


JDK Info:
=========
java version "1.6.0-beta2"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.6.0-beta2-b77)
Java HotSpot(TM) Client VM (build 1.6.0-beta2-b77, mixed mode)

Steps to reproduce:
===================
1. Download attached java file and launch the app.
2. Click on 'toggle state' button.

Expected Behavior:
==================
The icon and text should go into the disabled state.

Actaul Behavior:
================
text appears enabled.

Comments
EVALUATION Looking through older native applications I cannot find a case where there is a toolbar button that has text. It's always a 16x16 px icon. However we support toolbar buttons with text and previously showed the text in disabled buttons with a different color than enabled text (eg: gray instead of black). Right now the button text will not look disabled, which is why this is a regression. I can build a new app in a recent version of Visual Studio that does have a disabled button, but I can't figure out where they are getting the color from. A new app may be using .NET controls instead of win32, however, which might explain the discrepancy. The best way to handle this is to use the non-toolbar button disabled text in the case where a toolbar button's disabled and enabled colors are the same (usually meaning the disabled color isn't defined and it's just coming from higher up the cascade).
08-06-2006

EVALUATION I'm having some difficulty finding native equivalents to a toolbar toggle button with disabled text. The standard Explorer window has a disabled button, but Explorer is also known to break MS's own guidelines and use custom components. Strangely, StyleBuilder doesn't report a disabled state for toolbar buttons, so perhaps it would make sense to special case this to use the disabled state of normal buttons to draw text?
12-04-2006