Simple Java program to visualize 3D objects