how to remove MouseListener / ActionListener on a JTextField
Posted
by mithun1538
on Stack Overflow
See other posts from Stack Overflow
or by mithun1538
Published on 2010-04-13T08:14:04Z
Indexed on
2010/04/13
8:33 UTC
Read the original article
Hit count: 395
actionlistener
|java
Hello everyone,
I have the following code adding an ActionListener to a JTextField:
chatInput.addMouseListener(new java.awt.event.MouseAdapter() {
public void mouseClicked(java.awt.event.MouseEvent evt) {
chatInputMouseClicked(evt);
}
});
Now how do I remove this MouseListener using chatInput.removeMouseListener(), since this function needs an argument?
© Stack Overflow or respective owner