Java Solaris Communities Sun Store Join SDN My Profile Why Join?
 
Bug Database
Bug Detail
Quick Lists
Top 25 Bugs
Top 25 RFE's
Recently Closed Bugs
Printable Page Printable Page


Bug Database
Bug ID: 4419975
Votes 1
Synopsis metal l&f should respect high-contrast setting on windows
Category java:classes_swing
Reported Against merlin-beta
Release Fixed 1.4.1(hopper)
State 10-Fix Delivered, Verified, request for enhancement
Priority: 4-Low
Related Bugs 4419964
Submit Date 28-FEB-2001
Description
 -----------------------------------------------------------------------------
 xxxxx@xxxxx  28Feb2001

- On a windows machine, go to the control panel and open the "accessibility options" control panel.
- Go to the "Display" tabbed pane
- Check the option "Use High Contrast" in the control panel
- Press the "Apply" button
- The applications on the desktop will appear in black and white (no colors)
- Start a java application
- The Java application appears in standard low-contrast mode

This make java/metal applications virtually unusable by persons with visual impairments. It is not easy for users to change the look and feel, so the metal look and feel should shift to its own high-contrast mode (e.g., a theme) when the user has selected the high contrast setting on the desktop.

----------------------------------------------------------------------------- 
Work Around
 
Evaluation
Windows uses the system parameter SPI_GETHIGHCONTRAST to indicate a high contrast mode.
We need to get AWT to add support for looking up this property, and then metal can choose a suitable Theme if this property is set.
 xxxxx@xxxxx  2001-02-28

---------------------------------------------------
 xxxxx@xxxxx  2001-12-03

It's fairly easy to look at the windows colors and infer whether a high contrast color set has been selected. If the color names containing "background" and "forground" are all black or white, it's high contrast. I'll send code, if requested.

Of course, it would be best to pick up the SPI_GETHIGHCONTRAST parameter, but this really should not hold up the implementation of high contrast colors in metal.
----------------------------------------------------

A variant of the high contrast theme in SwingSet2 and Metalworks has been pulled into core.
We determine high contrast from the desktop setting that was added as part of 4516551.
 xxxxx@xxxxx  2001-12-12

For reasons described in 4668963 this will only be picked up if swing.useSystemFontSettings is true and the user has switched this on in the desktop.
 xxxxx@xxxxx  2002-04-18
Comments
  
  Include a link with my name & email   


PLEASE NOTE: JDK6 is formerly known as Project Mustang