Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > JTable and TableSorter Ques

Reply
Thread Tools

JTable and TableSorter Ques

 
 
Tim
Guest
Posts: n/a
 
      05-19-2004
Hi

I am using the TableSorter class and would like to know how to convert
the row in the view to the row in the model if the table has been
sorted. This is to delete the correct row from the Table Model.

Thanks
Tim
 
Reply With Quote
 
 
 
 
Tim Ward
Guest
Posts: n/a
 
      05-19-2004
"Tim" <> wrote in message
news: om...
>
> I am using the TableSorter class and would like to know how to convert
> the row in the view to the row in the model if the table has been
> sorted. This is to delete the correct row from the Table Model.


If you are using the table sorter from Sun's tutorial the simple answer is
that you can't, the architecture, not just the implementation, is broken in
this respect - do the maths. You have to design a completely different
architecture for a sorted table; none of the free ones that I've found
actually works.

(And quite why one should have to go to all this trouble when the underlying
operating system has perfectly functional table widget which does sorting
for free has always been beyond me ...)

--
Tim Ward
Brett Ward Limited - www.brettward.co.uk


 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
TableSorter NPE exception farseer Java 7 11-16-2006 06:17 PM
TableSorter.java v2.1 ouroborus Java 8 05-01-2006 09:17 PM
Eventhandling with TableSorter and TableFilterer cm Java 2 08-09-2004 09:36 AM
Sun's swing TableSorter VisionSet Java 8 06-07-2004 04:12 AM
Difficulties using TableSorter class from Sun's tutorial. Robert Java 3 10-06-2003 01:36 AM



Advertisments