public DetailsPanel(Canvas canvas) {
		this.canvas = canvas;

		ChooseLayerListener layerListener = new ChooseLayerListener(canvas);
		for (int i = 0; i < 4; i++) {
			layers[i] = new JButton(String.valueOf(i + 1));
			layers[i].addActionListener(layerListener);
		}
		layers[0].setBackground(Color.GRAY);

		chooseColor = new JButton("Choose Color");
		chooseColor.setBackground(Color.GREEN);
		chooseColor.addActionListener(new ChooseColorListener(canvas));

		clear = new JButton("Clear");
		clear.addActionListener(new ClearScreenListener());

		chooseLayer = new JLabel("Choose Layer:");

		strokeSize = new JLabel();
		setStrokeSize(canvas.getStrokeSize());

		add(chooseLayer);
		for (int i = 0; i < 4; i++) {
			add(layers[i]);
		}
		add(new JLabel("                               "));
		add(clear);
		add(chooseColor);
		add(strokeSize);
	}