This week's book giveaway is in the OCPJP forum. We're giving away four copies of OCA/OCP Java SE 7 Programmer I & II Study Guide and have Kathy Sierra & Bert Bates on-line! See this thread for details.
Hello, I'm using a JTable to display a list of mostly String values. There is one Double, however, that is not being displayed properly. For example: 0.0099 displays as 0.01 0.0166 displays as 0.017 It seems that the JTable is rounding to the nearest thousandth decimal place, but I require full accuracy for this table. Is there a way to force full accuracy when outputing Double values? If I add the value as a String to the table model, the value is properly displayed, but is no longer a number, nor is it properly right aligned, of course. Any suggestions? BTW: I store a copy of the beans used in creating each table row, and can confirm that the original double values are unchanged (and still reflect 0.0099, and 0.0166, for example)
subject: JTable not displaying accurate representation of Double