I have written MineSweeper game. In that I have two Listeners for a button as, \[code\] class SampleClass extends MouseAdapter implements ActionListener { //Some code here public void actionPerformed(ActionEvent event){ // Buttons listener.. System.out.println("I came here to actionPerformed."); //Some Code } public void mouseClicked(MouseEvent event) { //Mouse listener.. System.out.println("I came here to MouseClicked."); //Some Code if(event.getButton() == MouseEvent.BUTTON3){..}//If Right Mouse Button Is Clicked!! else if(event.getButton() == MouseEvent.BUTTON1){..}//If Left Mouse Button Is Clicked!! } }\[/code\]What I observed is , whenever left button of mouse is clicked, the only actionPerformed is called and not mouseClicked. But on the click of the right button of mouse, mouseClicked is called ( and as in normal case , actionPerformed is not called).But, When I remove the ActionListener, then on both clicks of left and right mouse buttons mouseClicked is called and works perfectly fine.I thought, the two listeners to be two different independent threads, listening for the events, But why one depends on other?