I am trying to highlight multiple rows of a JTable (contained in a JPanel) whose values i have edited and saved;but its highlighting only the first row i edit and not the other rows.I tried using the addSelectionInterval() as well as setSelectionInterval() but in vain.
This JPanel's JTables' (say child) data is dependent on the selected row of another JPanel's JTable (say parent).Firstly, i am selecting the row of the associated JTable (parent) and fetching the corresponding JPanel's JTables' (child) data and then selecting the multiple rows which i had previously edited and saved. Everything works fine and while debugging i noticed that its even selecting the rows properly .Please refer the following piece of code :
What could be the problem ?
Please refer the attachment for detailed information of how the form has been built .