Java中GUI——JTable中鼠標監聽的添加

//給table加上一個鼠標事件監聽器對象         table.addMouseListener(new Java.awt.event.MouseAdapter(){              publicvoid mouseClicked(MouseEvent e) {//僅當鼠標單擊時響應                 //得到選中的行列的索引值                int
相關文章
相關標籤/搜索