Cell Float « JTable « Java Swing Q&A





1. jRuby's Float to represent in JTable's cell    stackoverflow.com

I need to represent floats in jTable formatted. When I do tbl.model.add_row [obj, 1.3524632478].to_java, obj is represented as it's to_s method's return value, but float do not. Overriding float's to_s method does ...