java awt addMouseListener 双击事件
jTable.addMouseListener(new MouseAdapter() {
@Override
public void mouseClicked(MouseEvent e) {
// TODO Auto-generated method stub
super.mouseClicked(e);
//鼠标双击
if (e.getClickCount() == 2) {
dosomething...
}
}
});
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)