-
Bug
-
Resolution: Duplicate
-
P4
-
None
-
1.2.0
-
x86
-
windows_nt
Name: dbT83986 Date: 01/03/99
JDK 1.2 production release version.
Windows NT4.0sp3
Pentium 180 w/64Meg RAM, S3 graphics card.
Windows setting:
- 256 colors/ 1028 resolution.
- Desktop color setting uses the default setting
that comes with Windows. (ie. gray control)
Application specifics:
- Uses Swing and Jbuilder jbcl1.01.
- Inits JFrame, JLabels etc.. with setBackground(SystemColor.control);
I was investigating why our app comes up in patchy color
(instead of block) if some other windows are active when
the app is launched.
Sometimes, with non-Swing widgets, the color actually
changes when the cursor goes over them.
Here are some findings:
Symptom 1
---------
Bring up ANY Swing demo app in 256 color.
The colors of the Java App controls are 192,192,192.
(Screen dump and examined with paint).
Color of the normal Windows app are the same.
Now set the desktop to 65536 colors.
The colors of the Java App controls are now 198,199,198.
Whereas the colors of Windows app are 198,195,198.
Symptom 2
---------
Bring up our app in 256 colors with other windows active.
Our app comes up in patchy color.
Change to 65536 colors.
Our app changes to block color.
(Does this mean that the SystemColor.control setting
is incorrect for 256 colors?)
Symptom 3
---------
Change to 65536 colors setting.
Bring up SwingSet (or any Swing app).
Change to 256 colors setting.
SwingSet gets drawn entirely in BLACK!
Our product is nearing release but for this color problem,
and we can't ship it when the color looks so aweful.
Please help. Thanks.
(Review ID: 48878)
======================================================================
- duplicates
-
JDK-4280257 256 colors corrupt and flash when switch focus (win32 plugin only)
-
- Resolved
-