问题描述
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:代码不全,这个没法帮你查看的哦,你可以参照下老师的代码