paint application using java