Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JTable column disappered when clicked on header

 
rastogi payam
Ranch Hand
Posts: 47
Chrome Eclipse IDE Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

The code below is running fine until I select a checkbox to add a column dynamically in a table. After the new column is added in the table, if I click on the header of the table all the newly added column disappears and the table resets to the initial condition. I think it's because i didn't configure table column listener or something.. please help.

What I want is when we click any checkbox the column should be added/removed accordingly from the table and and when we click table header nothing should happen. On clicking the cell inside the table we should be able to edit it.

>
Invoice.jpg
This much works fine with JTable
[Thumbnail for Invoice.jpg]
 
m Korbel
Ranch Hand
Posts: 174
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
your code useless recreate whole GUI

you can to start with

 
rastogi payam
Ranch Hand
Posts: 47
Chrome Eclipse IDE Tomcat Server
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic