-
Bug
-
Resolution: Fixed
-
P2
-
1.3.0, 1.4.0
-
None
-
beta
-
x86
-
generic, windows_2000
Attached to this bug are 2 programs. ColorPalleteAWT.java and ColorPalleteSWING.java.
The problem is when ColorPalleteSWING is run with the colors setting set to 256 colors there is a serious degreadation in display. With ColorPalleteAWT everything appears normal and clear.
Customer is using Windows 2000, but also has seen this on win98
---------------------------
This bug is reproducible on jdk1.4 as well.
However, I'm not sure I understand what the customer is after.
From what I've seen, the bug is shown in the AWT test, not the
SWING test.
The applications use the static color names/values of the Color
class. In particular, they refer to Color.orange and Color.pink.
In the AWT test, these colors then show up as yellow and gray;
obviously not what was called for in the application. In the Swing
test, in the other hand, the colors show up exactly as
requested; orange and pink.
Is the user running into a problem because Swing's behavior is different
in this respect? If so, I would think that the problem lies in a bug
with AWT that should be fixed and the user's code will need to be
written to do the "right" thing. Or is there some other rendering
artifact that I'm missing here?...
chet.haase@Eng 2001-02-26
-----------------------------
The original description needs a little more elaboration to get to the
original problem. The degradation in display that the customer
saw was a dithering effect in the SWING case, where the AWT case had
no dithering. The bug with the different colors between swing and awt
was an artifact I noticed when running the apps and is not related
to the bug that the user had.
To reproduce the original problem:
- Run windows2000
- Run jdk1.3 on the two applications
- notice that the AWT version uses solid colors for
all the color blocks and the gray background
- notice that the SWING version uses dithering for all colors;
background and colored labels alike.
chet.haase@Eng 2001-03-09
The problem is when ColorPalleteSWING is run with the colors setting set to 256 colors there is a serious degreadation in display. With ColorPalleteAWT everything appears normal and clear.
Customer is using Windows 2000, but also has seen this on win98
---------------------------
This bug is reproducible on jdk1.4 as well.
However, I'm not sure I understand what the customer is after.
From what I've seen, the bug is shown in the AWT test, not the
SWING test.
The applications use the static color names/values of the Color
class. In particular, they refer to Color.orange and Color.pink.
In the AWT test, these colors then show up as yellow and gray;
obviously not what was called for in the application. In the Swing
test, in the other hand, the colors show up exactly as
requested; orange and pink.
Is the user running into a problem because Swing's behavior is different
in this respect? If so, I would think that the problem lies in a bug
with AWT that should be fixed and the user's code will need to be
written to do the "right" thing. Or is there some other rendering
artifact that I'm missing here?...
chet.haase@Eng 2001-02-26
-----------------------------
The original description needs a little more elaboration to get to the
original problem. The degradation in display that the customer
saw was a dithering effect in the SWING case, where the AWT case had
no dithering. The bug with the different colors between swing and awt
was an artifact I noticed when running the apps and is not related
to the bug that the user had.
To reproduce the original problem:
- Run windows2000
- Run jdk1.3 on the two applications
- notice that the AWT version uses solid colors for
all the color blocks and the gray background
- notice that the SWING version uses dithering for all colors;
background and colored labels alike.
chet.haase@Eng 2001-03-09
- duplicates
-
JDK-4347177 BackGround color is not set properly for AWT components on Win32-256 color bit d
-
- Closed
-