How to implement jtable with variable row-height

前端 未结 1 1571
夕颜
夕颜 2021-02-20 04:40

None of the answers to two previous questions (here and here) resolve my problem.

I have a multi-column jtable for which I want to display string-content of some columns

1条回答
  •  北海茫月
    2021-02-20 04:56

    If I got you right, I think you need a MultilineCellRenderer . There are already plenty of examples around. Normally they are based on a JTextArea to get the line wrap functionality.

    I haven't used it myself yet, but here is an example, which looks kinda good at first view:

    MultilineCellRenderer

    0 讨论(0)
提交回复
热议问题