How to prevent Java2 update 10 Java2D graphic glitches

Published:
Updated:
If you have upgraded to Java2 update 10 on a Microsoft Windows client, you may have discovered that your Java application does not work as it did before.  For example, the colors of your Java2D graphic may be all wrong for no apparent reason.

After I upgraded, I discovered the reason for this is that Java2 update 10 uses by default the Direct3D pipeline for accelerating the rendering of Java applications.  This is good for performance, but exposes your application to the incompatibilities and the platform-dependencies of a particular graphics driver (e.g., my PC has a Radeon HD 2400).

So if you hit this issue, the first thing to do is to download the latest driver for your graphic card.

If this still doesn't help, you can disable the accelerated graphic pipeline for Java2D by launching your Java app with this parameter:
 
-Dsun.java2d.d3d=false

Open in new window


Hope that helps!
0
3,264 Views

Comments (0)

Have a question about something in this article? You can receive help directly from the article author. Sign up for a free trial to get started.

Get access with a 7-day free trial.
You Belong in the World's Smartest IT Community