ui/src/main/java/ucar/nc2/ui/widget/BAMutil.java
public static AbstractButton makeButtcon( String iconName, String tooltip, boolean is_toggle) {
    Icon icon  = getIcon( iconName, false);
    Icon iconSel  = getIcon( iconName+"Sel", false);
    return makeButtcon( icon, iconSel, tooltip, is_toggle);
  }
public static AbstractButton makeButtcon( String iconName, String tooltip, boolean is_toggle) {
    Icon icon  = getIcon( iconName, false);
    Icon iconSel  = getIcon( iconName+"Sel", false);
    return makeButtcon( icon, iconSel, tooltip, is_toggle);
  }
public static AbstractButton makeButtcon ( String iconName , String tooltip , boolean is_toggle ) { Icon icon = getIcon ( iconName , false ) ; Icon iconSel = getIcon ( iconName + "Sel" , false ) ; return makeButtcon ( icon , iconSel , tooltip , is_toggle ) ; }
Make a "buttcon" = button with an Icon
@param iconName name of the Icon ( will look for <name>.gif)
@param tooltip the tooltip
@param is_toggle if true, make JToggleButton, else JButton
@return the buttcon (JButton or JToggleButton)
Make a buttcon = button with an Icon