Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JTable doubt

 
tadi raja
Ranch Hand
Posts: 109
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How to add mouse listener to particular cell of JTable ??
 
Maneesh Godbole
Saloon Keeper
Posts: 11021
12
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic