我的监听器不能实现

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知识准备提问时间:2017-08-03 08:24我来回答
1回答
ringa_lee
回复ringa_lee赞同02个月前

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