United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-6619469 Plug-in should set foreground as well as background color
JDK-6619469 : Plug-in should set foreground as well as background color

Details
Type:
Bug
Submit Date:
2007-10-20
Status:
Closed
Updated Date:
2011-01-26
Project Name:
JDK
Resolved Date:
2008-06-16
Component:
deploy
OS:
generic
Sub-Component:
plugin
CPU:
generic
Priority:
P4
Resolution:
Fixed
Affected Versions:
6u5
Fixed Versions:
6u10 (b21)

Related Reports

Sub Tasks

Description
###@###.### pointed out that we set the background color of the EmbeddedFrame containing the applet, but not the foreground color. This can result in surprising behavior where we paint white on white for some test cases. We should probably set the foreground color as well. Currently we obtain the background color from the GrayBoxPainter, but there is no way to query the foreground color, so that would need to be added as well.

                                    

Comments
SUGGESTED FIX

http://sa.sfbay.sun.com/projects/deployment_data/6u10/6619469.0
                                     
2008-02-19
EVALUATION

Added method to query the gray box painter's foreground color and code
to set it on the EmbeddedFrame.

Unfortunately I wasn't able to dig up a test case for this and don't
know the exact scenario in which it would take effect. Tested manually
with some simple applets.
                                     
2008-02-19



Hardware and Software, Engineered to Work Together