Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
The moose likes Swing / AWT / SWT and the fly likes event listening for jtable Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "event listening for jtable" Watch "event listening for jtable" New topic
Author

event listening for jtable

parthiban rajendran
Greenhorn

Joined: Oct 05, 2005
Posts: 8
friends,
i am doing a pgm in which there is a GUI with JTable in it.
i want the user to select(click) one of the rows and when he does so, i want to catch the event. but i am unable to do that as i find no event listeners that can be added to jtable. the listSelection listener did not help us. as our dead line as neared please send your ideas/suggestions immediately. i will be happy if you mail to me rather than posting it here. because in our office we can access net only after 4 pm.

kindly reply at the earliest


i love 'drinking' java
Jeff Albertson
Ranch Hand

Joined: Sep 16, 2005
Posts: 1780
Hmmm... if I wanted to observe row selection, the ListSelectionListener
is what I would use. Can you explain why it "didn't help?"


There is no emoticon for what I am feeling!
 
Don't get me started about those stupid light bulbs.
 
subject: event listening for jtable