Forums Register Login

getting values from JTable and putting them into textfields

+Pie Number of slices to send: Send
thanks Rahul,
This makes alot of sense. My second question is regarding Jtable,
For Example: If I click on a record in the Jtable I would like to get values from that row such as flight number,origin,destination,seats available and put these values into textfields. I am not sure on how to grab these values and to get them into a textfield.
Thanks Lisa
+Pie Number of slices to send: Send
Add a Mouse Listener - implement mouseClicked - use the table getSelectedRow
[This message has been edited by Paul Smiley (edited March 09, 2001).]
+Pie Number of slices to send: Send
Ok I have an anyonomous class mouselistener and I have the getSelectedRow() which shows the selected row number but what do I do from here? Is there any special functions that will allow me to extract the values from the Jtable?
Thanks Lisa
+Pie Number of slices to send: Send
getValueAt(int,int)
+Pie Number of slices to send: Send
thanks Pual you have been very helpful
Lisa
It's just like a fortune cookie, but instead of a cookie, it's pie. And we'll call it ... tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 874 times.
Similar Threads
JTable
JTable
JTable
JTable
JTable(!!!)
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 06:35:21.