Win a copy of The Way of the Web Tester: A Beginner's Guide to Automating Tests this week in the Testing forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

TableSorter and CellRenderers

Karl Beowulph
Ranch Hand
Posts: 130
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I'm currently building a class called NTable which is am extension of JTable. Basically I'm trying to create an all-in-wonder for myself so that I can create and manipulate tables pretty easily without fussing around with the different models and renderers.

I'm currently having a problem with sorting and rendering though.

Quick walkthrough:
I set the foreground color of a record to BLUE. I then sort the table.

The first problem is that the color doesn't move with the record but stays in a static position in the table. (Always a row #, not a particular record)

The second problem is that when I try to get the selectedRow, the result always comes up as -1 when I click on a sorted table.

Any ideas?
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic