erase = new JButton(im.getIcon(IconManager.ERASE)); erase.setToolTipText( UIUtilities.formatToolTipText("Erase the current shape.")); setButtonBorder(erase, false); eraseAll = new JButton(im.getIcon(IconManager.ERASE_ALL)); eraseAll.setToolTipText( UIUtilities.formatToolTipText("Erase all shapes.")); setButtonBorder(eraseAll, false);
    private void initButtons(IconManager im)    {        rectangle = new JButton(im.getIcon(IconManager.RECTANGLE));        rectangle.setToolTipText(                UIUtilities.formatToolTipText("Draw a rectangle."));        setButtonBorder(rectangle, true);        ellipse = new JButton(im.getIcon(IconManager.ELLIPSE));        ellipse.setToolTipText(                UIUtilities.formatToolTipText("Draw an ellipse."));        setButtonBorder(ellipse, false);        erase = new JButton(im.getIcon(IconManager.ERASE));        erase.setToolTipText(                UIUtilities.formatToolTipText("Erase the current shape."));        setButtonBorder(erase, false);        eraseAll = new JButton(im.getIcon(IconManager.ERASE_ALL));        eraseAll.setToolTipText(                UIUtilities.formatToolTipText("Erase all shapes."));        setButtonBorder(eraseAll, false);        analyse = new JButton(im.getIcon(IconManager.ANALYSE));        analyse.setToolTipText(                UIUtilities.formatToolTipText("Analyse data."));        setButtonBorder(analyse, false);        moveROI = new JButton(im.getIcon(IconManager.MOVE_ROI));        moveROI.setToolTipText(                UIUtilities.formatToolTipText("Move the selected selection."));        setButtonBorder(moveROI, false);        sizeROI = new JButton(im.getIcon(IconManager.SIZE_ROI));        sizeROI.setToolTipText(                UIUtilities.formatToolTipText("Resize the selected " +                                                "selection."));        setButtonBorder(sizeROI, false);        undoErase = new JButton(im.getIcon(IconManager.UNDO_ERASE));        undoErase.setToolTipText(                UIUtilities.formatToolTipText("Restore the last erased " +                                                "selection."));        setButtonBorder(undoErase, false);            }