Allowed All JComponts to be Resized

Made The class more generic.