Adding mouselistener to JLabel/JButton inserted in JTextPane
问题 I have a problem where when I try and add a mouselistener to a JLabel or JButton in a JTextPane I get the error "cannot be converted to Mouselistener by invocation conversion". I would prefer to have the component in a JEditorPane. I also heard a HyperlinkEvent could be used. Basicly I want a component that can be right/left clicked in a JEditorPane(preffered)/JTextPane. Any help would be appreciated Now it works (sortof) it only recives right clicks and I need to not draw button edges. Can I