Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

JTabel double click event

843807Jan 7 2010 — edited Jan 7 2010
Hello,

Is there a way to let a JTable listen to a double click event? I know that you can easily get the selection by a 1 click, but now I want that when there is double clicked an action happens (in this case a popup with a question).

For the double click event, I think you best could use the mousePressed event together with the int getClickCount(). Can you put that mousePressedEvent on the ListSelectListener and than count the amount of clicks and if 2 or more you fire an action (popup)?

Grtz
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 4 2010
Added on Jan 7 2010
6 comments
91 views