-
Bug
-
Resolution: Duplicate
-
P4
-
None
-
1.4.1
-
x86
-
windows_2000
###@###.### 2002-08-13
J2SE Version (please include all output from java -version flag):
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1-beta-b12)
Java HotSpot(TM) Client VM (build 1.4.1-beta-b12, mixed mode)
build 14 and 18 have the same problem.
Does this problem occur on J2SE 1.3 or 1.4? Yes / No (pick one)
No, Did not experience this with Hopper b10.
Operating System Configuration Information (be specific):
Windows 2000 with a multiscreen video card
WinXP with a multiscreen video card.
Hardware Configuration Information (be specific):
- Intel PIII
- NVidia TNT2 M64, Driver version 1.5.2.0
- Matrox Millenium G550 with driver from Matrox, version 5.12.01.1220
with 1280x1024 and 32 Bits/Pixel
- DirectDraw, version ddraw 5.1.2600.0
Bug Description:
Experience a lot of paint problems in customer's Swing GUI by using Hopper
build 18, but it woks fine with Hopper build10:
1) Custom panel backgrounds do often not show up correctly.
A small test case not always show the painting problem, it seems that
it requires complex paintings before it shows up. Attached the test case
(BackgroundTest.java) which contains the simple code that fails in more
complex contexts.
2) painting to a BufferedImage fails,
3) and Metal scroll bars sometimes do not paint all bumps.
The attached screenshot(HopperB12PaintProblems) shows problems 2) and 3),
the gray preview area is using a BufferedImage. It should not contain
the content of the"Themes" panel in the upper right. And
the scrollbar is not filled with bumps.
All the problem will be gone if disable offscreen
acceleration; add the parameter - "-Dsun.java2d.ddoffscreen=false"
Steps to Reproduce (be specific):
Problem 1) Use JPanel.setOpaque(false) and override #paintComponent.
Problem 2) Paint to a BufferedImage.
Problem 3) Use the Metal l&f.
The problem is earier to reproduce in customer's real apps(jDiskReport):
http://www.jgoodies.com/download/jdiskreport/jdiskreport.jnlp
also sees the problem with Swing JScrollBars in Metal look - they often
lack the bumps; most animations and the Metamorphosis elegant style
advenced GUI stuff are broken.
- duplicates
-
JDK-4725045 Various rendering operations to Swing back buffer not happening correctly
- Resolved