Java program to draw simple colored shapes