我使用表绑定作为folows
final JTableBinding<rowModel, List<rowModel>, JTable> indexTB =
SwingBindings.createJTableBinding(
AutoBinding.UpdateStrategy.READ_WRITE, rowModels, indexTable);
我与
绑定indexTB.addColumnBinding(amount).setColumnName("Amount").setColumnClass(Float.class).setEditable(useConstAmounts);
我的bean属性是
MyBeanPropertyImpl amount = MyBeanPropertyImpl.create(rowModel.class, "amount", Float.class);
在gui中 - 表中的amount列被截断为点后的三位数(即95.123),我需要更多的数字。 谢谢
答案 0 :(得分:0)
我添加了setConverter(new Converter(10))
如下:
indexTB.addColumnBinding(amount).setColumnName("Amount").setColumnClass(Float.class)
.setEditable(useConstAmounts).setConverter(new Converter(10))