JDK-4634736 : Image created with Component.createImage doesn't inherit component's attributes
  • Type: Bug
  • Component: client-libs
  • Sub-Component: 2d
  • Affected Version: 1.4.0
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: sparc
  • Submitted: 2002-02-07
  • Updated: 2002-02-21
  • Resolved: 2002-02-21
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.
Other
1.4.1 hopperFixed
Related Reports
Relates :  
Description
Solaris Sparc only, build b91 (with framebuffers with DGA, i.e
pixmaps are not being used).

Image created with Component.createImage() doesn't have the component's
attributes (bg/fg color, font)

Regression since 1.4 build 81.

###@###.### 2002-02-07

Comments
CONVERTED DATA BugTraq+ Release Management Values COMMIT TO FIX: hopper FIXED IN: hopper INTEGRATED IN: hopper
14-06-2004

SUGGESTED FIX /java/jdk/ws/2d/webrevs/4634736 ###@###.### 2002-02-08
08-02-2002

WORK AROUND Set the attributes explicitly, for example, for the background color, instead of using g.clearRect() to clear the background, use g.setColor(component.getBackground()); g.fillRect(); ###@###.### 2002-02-07
07-02-2002

EVALUATION The problem was introduced by the fix for 4492517: VolatileImage and Image performance slow on Linux In MComponentPeer.createImage instead of creating an OffscreenImage we're returning a BufferedImage, wihch doesn't have the component's bg color attribute. ###@###.### 2002-02-07
07-02-2002