aspose file tools*
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
Author

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: 10375
    
    8

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!]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JTable doubt