Some of you may know the Jide library (www.jidesoft.com), it's a library of swing components. One of their component is called SortableTable and, guess what, it provides sorting when clicking on the table header.
In my application it works fine. I wrote a test to ensure that the sorting order changed correclty on consecutive tableHeader clicks. Nothing never happens. When I use the methods provided by the sortableTable, my test works.
You may ask what's the problem? The thing is that my java interface exposes a JTable and not a SortableTable. I have to cast the Jtable into a SortableTable. If the implementation changes, my test will break.
From the user point of view, what is to be tested is that the sort order changes on tableHeader click.
Has anyone ever used table.getHeader.click(colIndex)?
Any clue?
--
Merci de penser à l'environnement avant d'imprimer cet e-mail / Please think about the environment before printing this email.
Merci de penser à l'environnement avant d'imprimer cet e-mail / Please think about the environment before printing this email.