A paintbrush application in java