• Post Reply Bookmark Topic Watch Topic
  • New Topic

Setting height of JTable headers?

 
Lon Allen
Ranch Hand
Posts: 67
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I am wanting to change the height of the column header on a JTable. How can I do this?
Lon Allen
 
Thomas Suer
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please try out this site:
http://www2.gol.com/users/tame/swing/examples/SwingExamples.html
Maybe you find an appropriate example...
Tom
 
Lon Allen
Ranch Hand
Posts: 67
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I created a class that extends JList and implements TableCellRenderer and used the following methods to get my desired results: setFont(), setFixedCellHeight().

Thanks for the help...

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