Simple geometric painting program written in Java