public final void updateIconSize() { this.setIcon(currentTool.getImageIcon(dataLayer)); // upadte tool tips in popup menu that belongs to this jToggleButton if (pop != null) { pop.updateIconSize(dataLayer); } }
public final void updateToolTip() { // update tool tip of jToggleButton this.setToolTipText(currentTool.getToolTip(dataLayer)); // upadte tool tips in popup menu that belongs to this jToggleButton if (pop != null) { pop.updateToolNames(dataLayer); } }