public void paint(Graphics graphics) {
        Graphics2D g = (Graphics2D) graphics;
        g.setRenderingHint(RenderingHints.KEY_ANTIALIASING,
                RenderingHints.VALUE_ANTIALIAS_ON);
        g.setColor(getBackground());
        g.fillRect(0, 0, getWidth(), getHeight());

        g.setStroke(new BasicStroke(2));

        
        for (Shape gp : items) {
            g.setColor(Color.BLACK);
            g.draw(gp);
        }
       

    }