File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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

event listening for jtable

parthiban rajendran

Joined: Oct 05, 2005
Posts: 8
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!
I agree. Here's the link:
subject: event listening for jtable
It's not a secret anymore!