JTables+colmun/row size !!

Hi all,I have created a table in java but I would like the table columns and rows to be resized automatically depending on the value they contain, so how can I do that?!Thanks in advance :)
[210 byte] By [Computer_Engineera] at [2007-11-27 6:22:35]
# 1

[url http://java.sun.com/docs/books/tutorial/uiswing/components/table.html#width]Setting and Changing Column Widths[/url].

JTable has a method for changing the row height.

So you need to iterate through every row for each colurn to set the column width and then iterate through every column for each row to set the row height.

camickra at 2007-7-12 17:39:42 > top of Java-index,Desktop,Core GUI APIs...
# 2
Thanks dude ;)
Computer_Engineera at 2007-7-12 17:39:42 > top of Java-index,Desktop,Core GUI APIs...