<Swing Dev> Image icons are not accessible in javaws cache
Sean Chou
zhouyx at linux.vnet.ibm.com
Thu Apr 21 06:36:18 UTC 2011
Hi all,
This is a simple patch for the problem, please have a look.
diff -r 0653cab602f2
src/share/classes/com/sun/java/swing/plaf/windows/WindowsLookAndFeel.java
--- a/src/share/classes/com/sun/java/swing/plaf/windows/WindowsLookAndFeel.java Thu
Mar 17 14:33:00 2011 -0700
+++ b/src/share/classes/com/sun/java/swing/plaf/windows/WindowsLookAndFeel.java Wed
Mar 23 13:21:38 2011 +0800
@@ -629,7 +629,7 @@
"Button.highlight", ControlHighlightColor,
"Button.disabledForeground", InactiveTextColor,
"Button.disabledShadow", ControlHighlightColor,
- "Button.focus", black,
+ "Button.focus", ControlTextColor,//black,//Changing The
Hard coded focus color to proper loaded color
"Button.dashedRectGapX", new XPValue(Integer.valueOf(3),
Integer.valueOf(5)),
"Button.dashedRectGapY", new XPValue(Integer.valueOf(3),
Integer.valueOf(4)),
"Button.dashedRectGapWidth", new
XPValue(Integer.valueOf(6), Integer.valueOf(10)),
@@ -652,7 +652,7 @@
"CheckBox.darkShadow", ControlDarkShadowColor,
"CheckBox.light", ControlLightColor,
"CheckBox.highlight", ControlHighlightColor,
- "CheckBox.focus", black,
+ "CheckBox.focus",ControlTextColor,//black,//Changing The
Hard coded focus color to proper loaded color
"CheckBox.focusInputMap",
new UIDefaults.LazyInputMap(new Object[] {
"SPACE", "pressed",
@@ -1010,7 +1010,7 @@
"RadioButton.darkShadow", ControlDarkShadowColor,
"RadioButton.light", ControlLightColor,
"RadioButton.highlight", ControlHighlightColor,
- "RadioButton.focus", black,
+ "RadioButton.focus", ControlTextColor,//black,//Changing
The Hard coded focus color to proper loaded color
"RadioButton.focusInputMap",
new UIDefaults.LazyInputMap(new Object[] {
"SPACE", "pressed",
2011/3/29 Sean Chou <zhouyx at linux.vnet.ibm.com>
> Hi,
> The WindowsLokAndFeel uses hard coded focus color(black) which makes the
> focus
> not visible within High Contrast Mode on windows.
>
> The problem can be reproduced as follows:
> 1. Run one javaws application.
> 2. Go to "Control panel -->Accessibility options --> Display TAB".
> 3. Select "Use high Contrast". Click on "Settings" button and ensure that
> "High contrast black(extra language)" in the color scheme.
> 4. Make sure that you have one jnlp imported in java cache viewer.(The 1st
> step did.)
> 5. Run the following command to invoke java cache viewer
> >>javaws -viewer
> 6. Select "Applications" in show combo box.
> 7. Select the any application present in java cache viewer.
> 8. Now, using TABs go to icons present in java cache viewer.(i.e Run icon,
> Show icon etc..)
>
> Observed result:
> Focus will not be visible on focused image icons.
> Expected result:
> Focus should be visible on focused image icons.
>
>
> The solution is Changing The Hard coded focus color to proper loaded color
> in WindowsLookAndFeel.
>
>
> --
> Best Regards,
> Sean Chou
>
>
--
Best Regards,
Sean Chou
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/swing-dev/attachments/20110421/560765ad/attachment.html>
More information about the swing-dev
mailing list