I have created a JTable and I have an xml file with stock symbols and their names.
I want the user to enter the stock symbol in the first column and when he press Enter to see the name of the Stock in the second column.
What is the proper JTable event to use?
Also, is it possible to calculate totals from cells with numeric values?
Thank you.
I have created a JTable and I have an xml file with stock symbols
Share
You can override the
TableChangedmethod ofTableModelListenerto access the data entered and then make the calculations you need.