Java based drawing program