JLabel ToolTip interferes with MouseListener
问题 I have Java Swing application ToolTipMouseTest The critical line is label.setToolTipText("label" + i); . Once it is commented out very click on a label produces 2 mousePressed in console. With this line enabled click on labels would produce nothing. Is this expected behaviour or a bug? My goal is to show tooltips without disabling MouseListener from working. Almost SSCCE, but without imports: public class ToolTipMouseTest { public static void main(String[] args) { SwingUtilities.invokeLater