r.setText("#"+j);
r.setLabel("#"+j);
    private void undoEraseOne(ROIShape roi)    {        int index = roi.getIndex();        Iterator i = listROI.iterator();        ROIShape r;        int j;        while (i.hasNext()) {            r = (ROIShape) i.next();            j = r.getIndex();            if (j >= index) {                j++;                r.setIndex(j);                r.setText("#"+j);            }        }        listROI.add(roi);        listROIErase.remove(roi);        currentROI = roi;        currentShape = roi.getShape();        if (listROIErase.size() == 0) erase = false;        view.setIndexSelected(index);    }