I have a quick question for you. I have a table with three columns. The table is generated dynamically so can�t tell about the rows. Once data has been displayed user can sort (ascending or descending) the data of table by clicking the any of the header. Awaiting reply. Dhaval
So what's the issue actually? You've some codes that need help in debugging? Or you need suggestions on how to approach your problem? Anyway, you need to be more specific in your question, if not its rather difficult to help you. I'm assuming that each row of your table is essentially a Javabean. So you can actually use Comparator to sort them according to your needs (column).
Welcome to JavaRanch, Dhaval! In what context is your GUI running? Is it a web page of a web application? Is it a Swing / AWT based GUI? Either way, you're possibly going to be taking advantage of the compareTo method of the Comparable interface.
Joined: Dec 10, 2001