posted 13 years ago
Hi friends,
When gothru the AWTEventMulticaster's mouseClick function I found that mouseClicked is fired two times. Colul anybody please explain why this is for? Please refer below code.
<Code>
/**
* Handles the mouseClicked event by invoking the
* mouseClicked methods on listener-a and listener-b.
* @param e the mouse event
*/
public void mouseClicked(MouseEvent e) {
((MouseListener)a).mouseClicked(e);
((MouseListener)b).mouseClicked(e);
}
</Code>
I have a JTable and added a mouse listener to that. When I click on the table, the mouseClick function fires two times. Could any body please help?
Thanks and Regards
Shihab