• Post Reply Bookmark Topic Watch Topic
  • New Topic

Help with a table and comparable  RSS feed

 
Pat Peg
Ranch Hand
Posts: 195
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I was reading the post and noticed someone had suggested the code at this site for a simulare problem I have as a solution to a sorting table in an applet: http://java.sun.com/docs/books/tutorial/uiswing/components/table.html#sorting

The code works great, it builds the table and yes, it sorts-kinda. The problem is two fold. I have int and Date data in my table and I need to recognize when it is looking at those columns and do a sort accordingly. I have probably broke the code more times then I care to count at this point. Where can I recognize which column I am sorting by and change the compare to handle the odd data types and also, where can I insert something to return a value from one of the cells?
I just need someone to point me in the right direction and I'll try and deal with the actual sorting.
Thanks
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!