scaling of JTable

I have JTable in JFrame.when i resize the JFrame , JTable doesnt show all columns i.e its data get cropped.Is there any way to scale JTable with resize in JFrame.Thanks ,Yogesh g k
[215 byte] By [Yogesh.Turoc3a] at [2007-11-27 4:24:44]
# 1
It all depends on your LayoutManager. http://java.sun.com/docs/books/tutorial/uiswing/layout/index.html
PhHeina at 2007-7-12 9:32:38 > top of Java-index,Desktop,Core GUI APIs...
# 2

Do you mean you want the text to shrink when the table is resized?

If that's what you want you can use a custom renderer to change the text size according to the column width.

Read in the tutorial Using Custom Renderers:

http://java.sun.com/docs/books/tutorial/uiswing/components/table.html#renderer

Rodney_McKaya at 2007-7-12 9:32:38 > top of Java-index,Desktop,Core GUI APIs...
# 3
You will also need to play with the table resize option: http://forum.java.sun.com/thread.jspa?forumID=57&threadID=5150554
camickra at 2007-7-12 9:32:38 > top of Java-index,Desktop,Core GUI APIs...
# 4
you might need to embed the JTable in a JScrollPane before adding it to the JFrame
developer_jbsa at 2007-7-12 9:32:38 > top of Java-index,Desktop,Core GUI APIs...