United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: 6406864 WinLAF:Text appears enabled in disabled toggle button.
6406864 : WinLAF:Text appears enabled in disabled toggle button.

Details
Type:
Bug
Submit Date:
2006-03-31
Status:
Closed
Updated Date:
2010-04-02
Project Name:
JDK
Resolved Date:
2006-07-19
Component:
client-libs
OS:
windows_xp
Sub-Component:
javax.swing
CPU:
x86
Priority:
P3
Resolution:
Fixed
Affected Versions:
5.0,6
Fixed Versions:
6

Related Reports
Backport:
Duplicate:
Duplicate:

Sub Tasks

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).
                                     
2006-06-08
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?
                                     
2006-04-12



Hardware and Software, Engineered to Work Together