making the canvaspanel a separate file that is now a jcomponent instead of a jtextfield