JDK-4059858 : Using clearRect with lightweight components uses wrong background
  • Type: Bug
  • Component: client-libs
  • Sub-Component: java.awt
  • Affected Version: 1.1.1
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows_95
  • CPU: x86
  • Submitted: 1997-06-18
  • Updated: 2000-04-08
  • Resolved: 2000-04-08
Related Reports
Duplicate :  
Description

Name: mc57594			Date: 06/18/97


When calling g.clearRect(..) from the paint method of a lightweight
component (i.e. one that extends Component), the background color used is the 
background color of the parent frame, not the component itself.
======================================================================

Comments
EVALUATION 4/8/2000 kevin.ryan@eng -- this has been evaluated as "will not fix" (for Graphics) under bug # 4285515.
11-06-2004

WORK AROUND Name: mc57594 Date: 06/18/97 Use g.fillRect(getBackground()); ======================================================================
11-06-2004

PUBLIC COMMENTS dupe of #4285515. please see that bug's evaluation.
10-06-2004