*/
public void createIcon2() {
FigureLayer layer = graphicsPane.getForegroundLayer();
// Use a hash-table
PaintedFigure g = new PaintedFigure();
HashMap map = new HashMap();
map.put("coords", "30 50 70 80 70 20");
map.put("fill", "red");
map.put("width", "1");
g.add(GraphicsParser.createPaintedObject("polygon", map));
//Line2D line1 = new Line2D.Double(10,50,30,50);
//f.add(new PaintedPath(line1));
//Line2D line2 = new Line2D.Double(70,50,90,50);
//f.add(new PaintedPath(line2));
layer.add(g);
g.setInteractor(defaultInteractor);
g.translate(100, 0);
}