我的监听器不能实现

public void mouseClicked(MouseEvent e) {

// TODO Auto-generated method stub

System.out.println("鼠标点击");

JOptionPane.showMessageDialog(this,"鼠标点击");

}


public void mouseEntered(MouseEvent e) {

// TODO Auto-generated method stub

System.out.println("鼠标进入");

JOptionPane.showMessageDialog(this,"鼠标进入");

}


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源自课程:Swing知识准备

添加回答

1回答
ringa_lee
2星期前ringa_lee

好好学习,天天向上

代码不全,这个没法帮你查看的哦,你可以参照下老师的代码

赞同00个回复