I have a jTable and need to autofit the row height of each row to text
Have a look at TableUtilities: there's a bunch of methods to adjust table row heights to the pref height of the rendering component. To use, trigger ´the appropriate method in a TableModelListener, wrapped into an invokeLater to be sure its done after table's internal update
Your use of this web site or any of its content or software indicates your agreement to be bound by these Terms of Participation.
Copyright © 2015, Oracle and/or its affiliates. All rights reserved. Oracle and Java are registered trademarks of Oracle and/or its affiliates. Other names may be trademarks of their respective owners.