problem formatting fields in a JTable - differences between Integer and Double

前端 未结 4 1663
清酒与你
清酒与你 2020-11-30 15:05

Update

Confirmed as a bug on JTable can\'t format given Object as Number when columnClass is Double (bug ID: 7051636). Feel free to vote for it, or if if you have

4条回答
  •  一向
    一向 (楼主)
    2020-11-30 15:40

    The problem is not the double but something else. As you can see in the stack trace, the table has special support for double values (javax.swing.JTable$DoubleRenderer).

    The problem us that the value passed to setValue() is not a Double but something else.

提交回复
热议问题