// tip does not fall in current tip range
if (tipPane.getModel().getTipCount() == 0
|| (currentTip < 0 && currentTip >= tipPane.getModel().getTipCount())) {
currentTipComponent = new JLabel();
} else {
Tip tip = tipPane.getModel().getTipAt(currentTip);
Object tipObject = tip.getTip();
if (tipObject instanceof Component) {
currentTipComponent = (Component)tipObject;
} else if (tipObject instanceof Icon) {
currentTipComponent = new JLabel((Icon)tipObject);
} else {