How to load row data by enter the first cell value, for example a watchList JTable and in the first column is the stock code thus when I enter F symbol I will got the detailed info related to the stock like name, last price, bid and Ask?
the idea is not filtering its about loading rows Individually row by row based on first cell data filling
- Tareq Saleh
"price, bid" Are these values dynamic? As in, the bid might be changing every other minute (few seconds)?
- Andrew Thompson
1 Answers
1
votes
You can add a TableModelListener to the TableModel. An event will be fired when data is changed in the model. If the data is changed in column 0, then you load the rest of the data for the row.
We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.OkRead more
TableRowSorter(which is also a filter). - Andrew Thompson