The information in this article applies to:
SYMPTOMSRGB values greater than 179 are treated as value 255 when passed to the setBackground() method on controls such as a java.awt.TextField. CAUSEThe setBackground() method calls the brighter() method on the java.awt.Color object that is passed to it. RESOLUTIONYou can have the Component work as expected by providing an overridden class in place of the java.awt.Color object that setBackground() is expecting. In this overridden class, the brighter() method should return a reference to "this". See the "More Information" section for an example. STATUSThis behavior is by design. To stay compatible with other, non-Microsoft virtual computers, this behavior will not change. MORE INFORMATIONUse this class in place of java.awt.Color when you call setBackground() to force the AWT Component to behave as expected:
REFERENCESFor the latest Knowledge Base articles and other support information on Visual J++ and the SDK for Java,
please see the following pages on the Microsoft Technical Support site: http://support.microsoft.com/support/visualj/ © Microsoft Corporation 1999, All Rights Reserved. Additional query words: AWT Color
Keywords : kbSDKJava kbVJ kbGrpJava kbDSupport |
Last Reviewed: November 16, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |