Paint opaqueColor = new Color(color.getRed(), color.getGreen(), color.getBlue(), 255);
Color opaqueColor = new Color(color.getRed(), color.getGreen(), color.getBlue());
    public ImageIcon getIconForPaint(Paint paint, boolean fill) {	if (paint == null) paint = Color.black;	DrawingAttributes da = new DrawingAttributes(); 	da.setLinePaint(paint);	da.setStroke(new BasicStroke(2));	if (fill) da.setFillPaint(paint);	OpenMapAppPartCollection collection = OpenMapAppPartCollection.getInstance();	IconPartList parts = new IconPartList();	if (paint instanceof Color) {	    Color color = (Color)paint;	    Paint opaqueColor = new Color(color.getRed(), color.getGreen(), color.getBlue(), 255);	    DrawingAttributes opaqueDA = new DrawingAttributes();	    opaqueDA.setLinePaint(opaqueColor);	    opaqueDA.setStroke(new BasicStroke(2));	    if (fill) opaqueDA.setFillPaint(opaqueColor);	    parts.add(collection.get("LR_TRI", opaqueDA));	    parts.add(collection.get("UL_TRI", da));	} else {	    parts.add(collection.get("BIG_BOX", da));	}	return OMIconFactory.getIcon(icon_width, icon_height, parts);    }