• Post Reply Bookmark Topic Watch Topic
  • New Topic

JTable getTableHeader() resize side-effects  RSS feed

 
Imre Tokai
Ranch Hand
Posts: 130
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,


About to resize JTable's header and when
getTableHeader().setPreferredSize( new Dimension((int) treeTable.getColumnModel().getTotalColumnWidth(), Integer.parseInt(heightP) ));
it does resize, indeed.
But there are side-effects that affects the text in whole table: different font/size...

Tried with examples I've found around but non of them work so far

Any idea?


Regards
 
Rob Camick
Ranch Hand
Posts: 2756
12
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Post your SSCCE that demonstrates the problem.
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!