setting the maximum character length

Hi friendz,How can we set the maximum length of characters being entered in a JTable.For example i need to set the table for 12 characters wide how do i proceed.Thanks in advance.............
[219 byte] By [chandrashekar9274a] at [2007-11-27 8:41:42]
# 1

Read in the tutorial how to use custom editors:

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

Then see the example in the tutorial how to limit the length of characters entered into a text field using a DocumentFilter:

http://java.sun.com/docs/books/tutorial/uiswing/components/generaltext.html#filter

Rodney_McKaya at 2007-7-12 20:40:46 > top of Java-index,Desktop,Core GUI APIs...