• Post Reply Bookmark Topic Watch Topic
  • New Topic

jTable column header (title) isn't visible after applying sidebar

 
David sointeresting
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello,
i created normal jframe form and it contains jtable
but my jtable has 23 column and i decided to make sidebar but after i did sidebar i lost my column header
some way to view again my jtable column headers ?
this is my code



 
Rob Camick
Ranch Hand
Posts: 2700
10
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


Don't add any component to the scrollpane. Instead you need to add the component to the viewport of the scrollpane:



Or another way to do this is the specify the table when you create the scrollpane:

 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!