搜尋

首頁  >  問答  >  主體

我的監聽器不能實現

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_u12709phpcn_u127092676 天前1699

全部回覆(1)我來回復

  • ringa_lee

    ringa_lee2017-08-07 11:14:52

    代碼不全,這個沒辦法幫你查看的哦,你可以參考下老師的代碼

    回覆
    0
  • 取消回覆