How to prevent Java2 update 10 Java2D graphic glitches

Published on
6,203 Points
Last Modified:
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:

Open in new window

Hope that helps!
Ask questions about what you read
If you have a question about something within an article, you can receive help directly from the article author. Experts Exchange article authors are available to answer questions and further the discussion.
Get 7 days free