Simple paint written in Java