Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

problem with innerclass  RSS feed

 
Kevin Hamrick
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I've included comments in the snippet of code to show you what I am trying to do and what is broken. Basically I create a sortable table via another class. Pop that table onto a JScrollpane in my ViewPage class. I then sort the table and it vanishes. The only solution I can think of is to build a false header of buttons for the table and the I should be able to make it work. That sounds like a bad idea to me but I can't seem to fix this part. If I were to do the false header is there a way to set the real table header to not display?



Thanks as always.
 
James Carman
Ranch Hand
Posts: 580
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You should create a sortable table model. Don't remove the table from the scrollpane. Just change the data in the model (reorder it) and have the model notify the view when the data is changed.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!