enableHardwareAccelerationProperties

This method can enable the hardware acceleration for Java2D, which implemented in OpenGL.

You can also set them in vm-options.