コード例 #1
0
  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);
    }
  }
コード例 #2
0
 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);
   }
 }