Can mode switch between Java, PDE X, and Javascript, and ground is drawn in correct place.