*/
public void createIcon1() {
FigureLayer layer = graphicsPane.getForegroundLayer();
// Create the graphic
PaintedList graphic = new PaintedList();
Polygon2D polygon = new Polygon2D.Double();
polygon.moveTo(30, 50);
polygon.lineTo(70, 80);
polygon.lineTo(70, 20);
graphic.add(new PaintedShape(polygon, Color.red, 1.0f));
Line2D line1 = new Line2D.Double(10, 50, 30, 50);
graphic.add(new PaintedPath(line1));
Line2D line2 = new Line2D.Double(70, 50, 90, 50);
graphic.add(new PaintedPath(line2));
// Create the icon
BasicRectangle background = new BasicRectangle(0, 0, 100, 100,
Color.green.brighter().brighter());
IconFigure _icon1 = new IconFigure(background, graphic);