This patch changes selection background color into correct one. The
selected text is now visible in Metal and Ocean L&F. It is still not
visible in GNU L&F because the selection background in this L&F is black
anyway. The foreground must be white, but for some reason stays black,
despite the that property is correctly defined.
PR 24749
2005-11-13 Audrius Meskauskas <[EMAIL PROTECTED]>
* javax/swing/plaf/basic/BasicTextUI.java (installDefaults): Call
setSelectionColor.
Index: javax/swing/plaf/basic/BasicTextUI.java
===================================================================
RCS file: /cvsroot/classpath/classpath/javax/swing/plaf/basic/BasicTextUI.java,v
retrieving revision 1.53
diff -u -r1.53 BasicTextUI.java
--- javax/swing/plaf/basic/BasicTextUI.java 9 Nov 2005 10:22:34 -0000
1.53
+++ javax/swing/plaf/basic/BasicTextUI.java 12 Nov 2005 22:22:26 -0000
@@ -557,6 +557,7 @@
textComponent.setDisabledTextColor
(UIManager.getColor(prefix + ".inactiveForeground"));
textComponent.setSelectedTextColor(UIManager.getColor(prefix +
".selectionForeground"));
+ textComponent.setSelectionColor(UIManager.getColor(prefix +
".selectionBackground"));
}
/**
_______________________________________________
Classpath-patches mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/classpath-patches