(shape.toString(), shape.icon);
(shape.toString(), shape.getIcon());
    public static void addRangeShapeItems (Range range,                                           JComponent top,                                           ActionListener listener)    {        // All shapes in the given range        for (Shape shape : range.shapes) {            JMenuItem menuItem  = new JMenuItem                (shape.toString(), shape.icon);            addColoredItem(top, menuItem, shape.getColor());            menuItem.setToolTipText(shape.description);            menuItem.addActionListener(listener);        }    }