I have a JTable displaying values for a Float data type. I would like to have the numbers displayed to 4 decimal points. e.g:
1.7 should be 1.7000
1 should be 1.0000
1.23456 should be 1.2346
But I don't know how to format display in a JTable cell. A few hours of doc digging did not help.
Is there any simple way to do it?