A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Swing / AWT / SWT
Regarding JTable Sorting
Joined: Jun 19, 2006
Feb 21, 2007 02:58:00
I cannot use JDK 1.6.
I needed the Table sorting and filtering functionality in
in JDK 1.5.
So what I did was got the following files from JDK1.6 and made up my own library. The following is the list of the files:
I wrote my own renderers and created a custom table model by extending the
The sorting and filtering is working fine.
Now I am developing some program in JDK1.5 and using the library created by me for the sorting of
. I have extended the
of JDK1.5. Sorting is working fine.
I face issues when I do drag and drop. The table rows are getting properly exported to the destination table, but when I delete the rows from the source table improper rows are getting deleted.
I convert the rows that are being dragged to the proper index using the convertRowIndexToModel method of the JDK1.6
. But even then I am getting the same results...
Any inputs as to why this is happening? Do I need to add some more
files from the JDK1.6 library.
[ February 21, 2007: Message edited by: Milesh Dcunha ]
The world is becoming an orgy of self-sacrifice when it is precisely the self that should not be sacrificed.
I agree. Here's the link:
subject: Regarding JTable Sorting
Combobox in JTable
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015