How to resize the column header according to row data

Hi,How can i resize the column header according to row date .. means if data is small header should be small and vice versa ,... Any help is appreciated .. Snippet will be more helpful .Thanks,Shekhar
[235 byte] By [Shekhar_javaa] at [2007-11-27 1:34:43]
# 1
Oxley (binkley) blogged about this: http://binkley.blogspot.com/2006/01/getting-jtable-columns-widths-to-fit.htmlChristian Ullenboom | tutego
Christian.Ullenbooma at 2007-7-12 0:42:22 > top of Java-index,Desktop,Core GUI APIs...