Search...
FAQs
Subscribe
Pie
FAQs
Recent topics
Flagged topics
Hot topics
Best topics
Search...
Search within Swing / AWT / SWT
Search Coderanch
Advance search
Google search
Register / Login
Post Reply
Bookmark Topic
Watch Topic
New Topic
programming forums
Java
Mobile
Certification
Databases
Caching
Books
Engineering
Micro Controllers
OS
Languages
Paradigms
IDEs
Build Tools
Frameworks
Application Servers
Open Source
This Site
Careers
Other
Pie Elite
all forums
this forum made possible by our volunteer staff, including ...
Marshals:
Campbell Ritchie
Jeanne Boyarsky
Ron McLeod
Paul Clapham
Liutauras Vilda
Sheriffs:
paul wheaton
Rob Spoor
Devaka Cooray
Saloon Keepers:
Stephan van Hulst
Tim Holloway
Carey Brown
Frits Walraven
Tim Moores
Bartenders:
Mikalai Zaikin
Forum:
Swing / AWT / SWT
Detecting mouse events in JTable
Jody Seigle
Greenhorn
Posts: 24
posted 22 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Is there a way make a JTable set a row as selected when the Right
mouse button is pressed as well as the left. Who is the listener for mouse events on a JTable that does the row selection?
Thanks for any help.
keiyia jackson
Ranch Hand
Posts: 49
posted 22 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
MouseAdapter
Yanick Gaudet
Greenhorn
Posts: 5
posted 22 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
Could someone post more detail on the MouseAdapter answer?
Thanks a bunch,
Yanick
raoul schmidiger
Greenhorn
Posts: 4
posted 18 years ago
Number of slices to send:
Optional 'thank-you' note:
Send
table.addMouseListener(new MouseAdapter() { public void mousePressed(MouseEvent e) { // right mouse button = 3 if(e.getButton() == MouseEvent.BUTTON3) { if(showSelectionListener.getSelectedShows().size() != 0) { // do something } } } });
reply
reply
Bookmark Topic
Watch Topic
New Topic
Boost this thread!
Similar Threads
JTable focus problem
JTable cell
JTable: row selection based on mouse click
Disabling MouseEvents in JTable
JTable(!!!)
More...