I'm trying to understand why JColorChooser changes in appearance when my application is run from the IDE (Eclipse) or from a Jar file (created by an ant script). This is the panel when run from the IDE:

and this is the panel when run from the executable jar:

The color chooser is created with:

final JColorChooser colorChooser = new JColorChooser(Color.WHITE); colorChooser.setPreviewPanel(new JPanel());

The VM arguments set are the same too:

-Dsun.java2d.opengl=True -Dsun.awt.noerasebackground=true

I just can't understand why the panels are different when run from different locations. Can anyone explain why?