No, game libraries don't use Java 2D or Java 3D for performance reasons.
Java 2D/Java 3D are general-purpose abstractions, which means that they sacrifice some performance in order to be easier to use, but for a lot of games performance is really important.