Shape Drawing Program in Java