Search the web
Sign In
New User? Sign Up
uispec4j
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Show off your group to the world. Share a photo of your group with us.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
failed to sort a JTable clicking on its header   Message List  
Reply | Forward Message #543 of 610 |
Hi all,

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.


Thu Jul 16, 2009 9:52 am

pigelvy@...
Send Email Send Email

Forward
Message #543 of 610 |
Expand Messages Author Sort by Date

Hi all, Some of you may know the Jide library (www.jidesoft.com), it's a library of swing components. One of their component is called ...
Ludovic Viegas
pigelvy@...
Send Email
Jul 17, 2009
2:13 pm

Hi Ludovic, This is quite surprising. I have been using table.getHeader.click(colIndex) for years, and it perfectly does the job... As a matter of fact, we...
Pascal PRATMARTY
pratmartyp
Offline Send Email
Jul 21, 2009
7:02 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help