• Post Reply Bookmark Topic Watch Topic
  • New Topic

right button event mouse in jtable

 
david luis
Ranch Hand
Posts: 53
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I'm trying to can make right button event to show a popup of copy/paste in a jtable but I put these code and doesn't works:


Could you help me please?
Many thanks and sorry for my English!
 
Campbell Ritchie
Marshal
Posts: 52581
119
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you tried the getButton method of the MouseEvent object?
 
david luis
Ranch Hand
Posts: 53
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Campbell Ritchie wrote:Have you tried the getButton method of the MouseEvent object?


Thanks,
I put some output console output and I cant see them. Is like doesn't go to the event:

 
Campbell Ritchie
Marshal
Posts: 52581
119
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Where did you add the Listener?
 
david luis
Ranch Hand
Posts: 53
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I forget add the listener
 
Campbell Ritchie
Marshal
Posts: 52581
119
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Lots of people do that sort of thing.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!