2012-05-29 35 views
0

我想在用戶雙擊specyfic JTable行時打開新窗口。窗口的類型取決於行。我如何創建ActionListener在JTable行中雙擊?JTable行的ActionListener

+1

請參閱:http://stackoverflow.com/questions/1378096/actionlistener-on-jlabel-or-jtable-cell –

回答

1

使用getClickCount()方法來捕獲雙重計數.... getClickCount()給出了abt單擊它的類型(即單一,雙重,三重等),但不是總點擊數。