Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Wants Header of a JTable to be static.

 
Jatinder Arora
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a JTable added to the JscrollPane and i want that when i move the horiontal scrollbar the header should not move with the scrollbar.
 
Tad Dicks
Ranch Hand
Posts: 264
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
By header do you mean column headings? If thats the case I'm not sure thats possible. You could create a table with no column headings, and create your own header (JLabel or other) that is not inside the scrollpane.

-Tad
 
Jatinder Arora
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Header means column header.
The table i have generated has two parts in header. Each column has an individual header and also each column has one common header.I want that common header should not move with scrollpane.
Please let me know if you have any idea to do that.
Thanx
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic