This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes JTable doubt Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "JTable doubt" Watch "JTable doubt" New topic

JTable doubt

tadi raja
Ranch Hand

Joined: Jul 07, 2008
Posts: 109
How to add mouse listener to particular cell of JTable ??
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10744

Originally posted by tadi raja:
How to add mouse listener to particular cell of JTable ??

You cant.
However, you can add it to the table itself. The table has rowAtPoint(Point point) and columnAtPoint(Point point) which you can use to identify the individual cell.

[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
Have you checked out Aspose?
subject: JTable doubt
It's not a secret anymore!