Win a copy of The Way of the Web Tester: A Beginner's Guide to Automating Tests this week in the Testing forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JTable cellrenderer with a column having JTextArea cell renderer

mark goking
Ranch Hand
Posts: 155
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can anyone give me ideas/clues/explanations

a JTable cellrenderer having a column with a JTextArea cellrenderer

the row height of this JTable cellrenderer does not adjust its rows accordingly

in my outer JTable, i use table.setRowHeight(row, table_cell_renderer.getPreferredSize().height);
this works if my inner JTable's JTextArea cell renderer has setRows() value but if i setRows(0) because i want the inner JTable's rows to adjust its height based on the JTextArea's content, it doesnt work

please see attached image

[Thumbnail for table.jpg]
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic