@Override
public JToolTip createToolTip() {
// don't show tooltip, if disabled in settings
if (!Settings.propShowChannelTooltipInProgramTable.getBoolean()) {
return new ToolTipWithIcon(null, null);
}
boolean showIcon = false;
boolean showText = false;
JToolTip tip;
Icon channelIcon = mChannel.getIcon();
if (channelIcon != null && channelIcon instanceof ImageIcon) {
Icon shownIcon = this.getIcon();
if (shownIcon != null && (channelIcon.getIconHeight() > shownIcon.getIconHeight() || channelIcon.getIconWidth() > shownIcon.getIconWidth())) {
showIcon = true;
}
}
if (showIcon) {
tip = new ToolTipWithIcon((ImageIcon) channelIcon);
// tip.setMinimumSize(new Dimension(getIcon().getIconWidth() + 2,getIcon().getIconHeight() + 2));
}
else {
tip = new ToolTipWithIcon((ImageIcon)null);
}
tip.setBackground(Color.WHITE);
tip.setComponent(this);
String text = null;
if (showText) {