A paint application in Java