plot canvas displayed in jframe