Get the tools you need to learn Java skills fast!
Video tutorials, eBooks, hands-on lab exercises, sample code.
Get started
The moose likes Swing / AWT / SWT and the fly likes jtable right mouse click Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Software Craftsman this week in the Agile forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "jtable right mouse click" Watch "jtable right mouse click" New topic
Author

jtable right mouse click

Martin Borovnik
Greenhorn

Joined: Aug 30, 2005
Posts: 8
hi!

how can i set a selection with right mouse click in jtable? it only works with left mouse clicks. my table has single_selection mode.

thx
martin
Tim McGuire
Ranch Hand

Joined: Apr 30, 2003
Posts: 820

This is the only way I could find to select a row on a right mouse click:

Martin Borovnik
Greenhorn

Joined: Aug 30, 2005
Posts: 8
hi!

thx!
martin
 
jQuery in Action, 2nd edition
 
subject: jtable right mouse click