Multiple cell renderers for a column in a JTable?

前端 未结 2 841
难免孤独
难免孤独 2021-01-14 16:52

Let\'s say I have the following JTable, which is displayed as soon as a button is pressed:

      | Name
------+------------
True  | Hello World
False | Foo B         


        
2条回答
  •  甜味超标
    2021-01-14 17:14

    Have getTableCellRendererComponent return a blank JLabel if the initial value was false.

提交回复
热议问题