• Post Reply Bookmark Topic Watch Topic
  • New Topic

Dynamically increasing row height in JTable

 
polina_keselman
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hey guys,
i am trying to set row height for each row individually. I created a JTextArea renderer, (because i need to show multiple lines inside some cells). TextArea knows how many lines should be there, so i set the row height in the getTableCellRendererComponent() method of Renderer based on the preferred of the textArea. I call table.setRowHeight(rowNumber, height_wanted)
where height_wanted is a preferred size of TextArea. It doesn't work. I found one article that mentioned that it doesn't work for 1.4 and works for 1.3 but i wasn't sure if it was fixed yet, or not. I use 1.4_0_1 (the latest available)
Anyone with similar experience??
thanks a lot.
 
polina_keselman
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
ok, it actually works for a regular JTable.. guess the problem is in the table that i use :-(
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!