Add constructor for JCanvas