This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes Href in Jtable(or similar action) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Href in Jtable(or similar action)" Watch "Href in Jtable(or similar action)" New topic
Author

Href in Jtable(or similar action)

surya naidu
Ranch Hand

Joined: Jul 26, 2010
Posts: 32
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
Bartender

Joined: Oct 14, 2005
Posts: 18541
    
    8

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

Joined: Jul 26, 2010
Posts: 32
Thank you...I used it like this and got it to work....


 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Href in Jtable(or similar action)
 
Similar Threads
JTable
JTable
JTable(!!!)
jtable
complex JTable cell mouseover issue