我的监听器不能实现

【字号: 日期:2022-10-26浏览:25作者:雯心

问题描述

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

}

问题解答

回答1:

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

相关文章: