Forums Register Login

getting focus out of jTable

+Pie Number of slices to send: Send
I have my booking details beneath the JTable. When user presses TAB on last row, last col i want to take the foucs out of JTable to the reservation textfiled.
someone pls let me know the api for that
+Pie Number of slices to send: Send
Well there are KeyListeners that you can use, but there is also ListSelectionListener. You need to create a class that implements one of these interfaces, provide the necessay method, get the Jatable make sure they are already on the last row, if it is, call the requestFocus() method of the component you want to grab the focus.
That is the overview, the specific details you will need to look at the api to get.
If not, then don't implement that, you won't get docked points if you don't have it tab out of the JTable.
Mark
+Pie Number of slices to send: Send
thanks Mark iam not sure how to implement it iam going to ignore it.
Alas, poor Yorick, he knew this tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 506 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 19, 2024 04:09:19.