My listener doesn't work
phpcn_u12709
phpcn_u12709 2017-08-03 08:24:20
0
1
1720

public void mouseClicked(MouseEvent e) {

// TODO Auto-generated method stub

System.out.println("Mouse click");

JOptionPane.showMessageDialog(this,"Mouse click");

}


public void mouseEntered(MouseEvent e) {

// TODO Auto-generated method stub

System.out.println("Mouse enters");

JOptionPane.showMessageDialog(this,"Mouse enters");

}


public void mouseExited(MouseEvent e) {

// TODO Auto-generated method stub

}


public void mousePressed(MouseEvent e) {

// TODO Auto-generated method stub

}


public void mouseReleased(MouseEvent e) {

// TODO Auto-generated method stub

}


phpcn_u12709
phpcn_u12709

reply all(1)
ringa_lee

The code is incomplete. I can’t help you check this. You can refer to the teacher’s code

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template