• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Href in Jtable(or similar action)

 
surya naidu
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi I have a Jtable which shows a list of users

I have a requirement where i need to be able to click on a username ,I need to capture the username clicked

and then be able to edit the particular users my profile

Can someone help me on how to do this

something like adding a mouse listener on the table....or any other way to do it

(I tried adding a mouse listener to the table but it wouldnt work .or some how i couldnt get it work)
 
Paul Clapham
Sheriff
Posts: 21322
32
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Usually you just add a selection listener, so that when somebody clicks on a row and thereby selects that row, your listener is notified. The way to do that is a little bit obscure:
 
surya naidu
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you...I used it like this and got it to work....


 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic