> I have a JTable and want to enter probabilities in to it. Most of the time
> this works fine but I have recently noticied that if I try to enter small
> values like this 0.00002 when the cell loses focus the value in the cell
> becomes 0. When focus returns to the cell it correctly displays 2.0E-5.
This indicates that the component used by the CellEditor and the
component used by the CellRenderer formats numbers differently.
> How can I make it so 2.0E-5 would always appear or even 0.00002 but not 0 as
> that is wrong. Obviously the values in the JTables data array are correct
> but they arn't displaying correctly.
Write your custom CellRenderer to format it correctly.
> I have tried implementing a number of DefautCellRenderers, CellRender ....
How did you set the text in the interface's rendering method?