public CanvasView(Model m,Control c){

		model=m;
		control=c;
		paint_panel=new PaintPanel(m,c,this);
		JPanel contentPane=new JPanel();
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		this.setBounds(100, 100, 680, 493);
		setPreferredSize((new Dimension(690, 500)));
		contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
		setContentPane(contentPane);
		contentPane.setLayout(null);
		setResizable(false);


		shapechooser = new JComboBox();
		shapechooser.setModel(new DefaultComboBoxModel(new String[] {"Line", "Square", "Circle"}));
		shapechooser.setBounds(75, 11, 84, 20);
		contentPane.add(shapechooser);

		lblShape = new JLabel("Shape");
		lblShape.setBounds(19, 14, 46, 14);
		contentPane.add(lblShape);

		lblColor = new JLabel("Color");
		lblColor.setBounds(195, 14, 46, 14);
		contentPane.add(lblColor);

		colorchooser = new JComboBox();
		colorchooser.setModel(new DefaultComboBoxModel(new String[] {"Black", "Red", "Green", "Blue", "Orange"}));
		colorchooser.setBounds(242, 11, 84, 20);
		contentPane.add(colorchooser);

		unDoButton = new JButton("Undo");
		unDoButton.setBounds(367, 10, 100, 23);
		contentPane.add(unDoButton);


		reDoButton = new JButton("Redo");
		reDoButton.setBounds(476, 10, 100, 23);
		contentPane.add(reDoButton);

		btnLoadImage = new JButton("Load Image");

		btnLoadImage.setBounds(367, 38, 100, 23);
		contentPane.add(btnLoadImage);


		paint_panel.setBounds(10, 72, 644, 372);
		paint_panel.setSize(644,372);
		paint_panel.setBorder(new LineBorder(new Color(0, 0, 0), 2));
		contentPane.add(paint_panel);

		chckbxFill = new JCheckBox("Fill");
		chckbxFill.setBounds(85, 38, 97, 23);
		contentPane.add(chckbxFill);

		btnSaveImage = new JButton("Save Image");

		btnSaveImage.setBounds(476, 38, 100, 23);
		contentPane.add(btnSaveImage);

		addEvents(); //  add events to the components
		//... finalize layout
		this.setContentPane(contentPane);
		this.pack();  
		this.setTitle("Drawing Canvas");

	}//canvas view