A paint application in java