• Post Reply Bookmark Topic Watch Topic
  • New Topic

Help with JTable please

 
Garandi Garandi
Ranch Hand
Posts: 192
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I want to build a table if I extend JFrame or JScrollPane, I can see table column hearder and everything is fine, but if I extend JPanel and latter on add it to JFrame or JScroll pane, table data is visible, BUT Table Column headers are not visible.
Thank you
Garandi
 
Michael Morris
Ranch Hand
Posts: 3451
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Garandi,
A JTable has to be enclosed in a JScrollPane for the header to be visible.
Michael Morris
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!