RemoveColumn from TableModel not just JTable

I do something like this to remove a column from my JTable:
JTable.removeColumn(getColumn(columnName));This works great for removing the column from the table...but it doesn't remove the column from the TableModel so if you do a repaint the column come back. There is no
JTableModel.removeColumn()How can I remove my column from the model?
PS...How dumb...why would you still want the column in the TableModel after you remove it!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

I would guess 90% of time people what to removeColumn from both Table and Model so why not accommodate the 90% AND 10%. NOT just the 10%.Then why build the TableModel with the data to begin with? Its much faster to simply remove a column from display on the table then it is to recreate the entire TableModel, especially if you need to do a remote database query. So build the TableModel with all the information and let the users customize the view themselves.
I think you've got your percentages reversed.

Similar Messages

Maybe you are looking for

  • How do i add text from a pc to iphone

    how do i add text from a pc to iphone like saved docs in microsof office

  • PLEASE REPLY! HELP TRANSFERING SONGS

    Well, I decided that I needed to make my main libarary at another computer, so I plugged in the ipod at the new computer and went through the steps. All the songs that I had bought from iTunes appeared, but none of the songs I had uploaded from CD's.

  • What happens to Apps when the Distribution certificate expires?

    Our distribution certificate expires in mid March. Do I have to re-build all the apps that are on the App Store with the new certificate or will they continue to install without issues? My gut feel is that Apple would not expect developers to re-subm

  • OBIEE Conformed dimension with Bridge Table

    Hi, I have an issue and tried all the links from Mark and Gerad regarding bridge tables. But probably this is a bit different. I have to extend the OOB data model for OBIA - where the relationship between group account and gl account dimensions are 1

  • Suddenly, ALL my mail in all boxes disappeared.

    I removed and re-entered my account,and now Mail looks entirely different, e.g. no sent box and a category called "All Inboxes".  And I can't designate active/inactive in Settings. What has happened?.