A simple paint program created in java