• Post Reply Bookmark Topic Watch Topic
  • New Topic

Swings, TableHeader not refreshed when scrolled  RSS feed

 
Umashankar Arora
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello friends,
I m having a class which extends JTable and that I have passed in the constructor of the JScrollPane as a parameter. Now When i Scroll the table horizontally the table headers not refreshed properly. The column headers and columns are not aligned properly.
Can any one help me.
 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ummm... it would really help if you posted the code of "the class which extends JTable"... no one will be able to help at all if they have no idea what is going on in your code...
 
Umashankar Arora
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
to some extend i have found the reason. to change the header height i m setting the preferredSize of the header. if i remove this the problem is solved. hence other problem can't i change the height of table header different than the row height.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!