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
}
ringa_lee2017-08-07 11:14:52
The code is incomplete. I can’t help you check this. You can refer to the teacher’s code