Forums Register Login

TableSorter for TableModel

+Pie Number of slices to send: Send
are we allowed to use the code of TableSorter as is in the SCJD assignment?
Please advice. TableSorter comes as part of the swing tutorial ... :roll:
+Pie Number of slices to send: Send
Sorting is not a requirement AFAIK.
So, if you still want to implement it, I would advise not to use the Swing example - this is lame. It is not a good example anyway. If you don't know how to implement one from scratch look for one of the other several hundred samples that must be out there.
Regards,
Marcel
+Pie Number of slices to send: Send
"kmadan"-
Welcome to the JavaRanch! Please adjust your displayed name to meet the
JavaRanch Naming Policy.
You can change it
here.
Thanks! and welcome to the JavaRanch!
Mark
+Pie Number of slices to send: Send
Hi Kmadan,
Welcome to JavaRanch.
Do you have a statment in your instructions telling you that "you must not submit any code that is not your own work"? If so, then it would be extremely risky to use a class that you did not write.
You could use the ideas presented in the tutorial to create your own sorter (and probably do a better job of it while you are at it).
Remember that the tutorials are usually designed to get a generic concept across - they can usually be made more maintainable / more efficient when you have a specific goal in mind (which is why Microsoft were able to make a better :roll: "Pet Store" application - they just removed all the design patterns that the Pet Store was designed to showcase ).
Regards, Andrew
+Pie Number of slices to send: Send
Thanks guys for pointing me in correct direction, not to use others work, I will write own sorter.
Its not a requirement but makes the GUI work better.
thanks for the help
KMadan
+Pie Number of slices to send: Send
As Mark said, please ajust your displayed name.
If you want to write your own sorter java.util.Collections.sort(List list, Comparator c) might of use for you
Regards,
Marcel
+Pie Number of slices to send: Send
I think my diaplayed name conforms with the naming policy . . .
"You can even use initials for the first name if you like. "
:roll:
cheers
+Pie Number of slices to send: Send
Hi K,
Yes, your name does conform. Thank you.
Regards, Andrew
See ya later boys, I think I'm in love. Oh wait, she's just a tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 646 times.
Similar Threads
Java Tutorial Table Sorter
Jtable sorting; problem with getValueAt
TableSorter
Executing javascript on div loaded by php call - ajax tabs
Sort by click the JTable column head.
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 29, 2024 06:14:35.