JDK-6619469 : Plug-in should set foreground as well as background color
  • Type: Bug
  • Component: deploy
  • Sub-Component: plugin
  • Affected Version: 6u5
  • Priority: P4
  • Status: Closed
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2007-10-20
  • Updated: 2011-01-26
  • Resolved: 2008-06-16
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
6u10 b21Fixed
###@###.### 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.

SUGGESTED FIX http://sa.sfbay.sun.com/projects/deployment_data/6u10/6619469.0

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.