Limiting the capacity of a cell of JTable

I want to have the JTable with the cell in which only limited size character or digit can be entered.
For instance: in the first column of every row there can be only characters of maximum 5 character can be inserted.
In the second column only float type of value can be inserted with only two digists after the decimal(ex:10.24 and not 12.234)
and so on.
How can I do this?Has anyone any idea?Please help.