• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

problem with innerclass

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.
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.
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
    Bookmark Topic Watch Topic
  • New Topic