首页 >Java讨论组 >我的监听器不能实现

我的监听器不能实现我的监听器不能实现设为精华置顶

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
 
+1
-1
 
分享
全部回复 (1)我来回答
    ringa_lee
    1楼
    ringa_lee · 4个月前

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

      赞+0添加回复

    首页上一页1下一页尾页