// to recompute all keytips if the
// originator is a task toggle button.
SwingUtilities.invokeLater(new Runnable() {
@Override
public void run() {
KeyTipManager ktm = KeyTipManager.defaultManager();
if (ktm.isShowingKeyTips()) {
KeyTipManager.KeyTipChain chain = ktm
.getCurrentlyShownKeyTipChain();
if (chain.chainParentComponent == taskToggleButtons
.get(curr)) {
ktm.refreshCurrentChain();
}
}
}
});
}