How to wrap lines in a jtable cell?

前端 未结 8 1089
面向向阳花
面向向阳花 2020-11-29 09:11

I\'m trying to implement a custom TableRenderer as described in this tutorial. I\'d like to have the renderer line-wrap each text that is to long for the given cell. The i

8条回答
  •  北荒
    北荒 (楼主)
    2020-11-29 09:28

    You could use a JLabel as a renderer and insert the text into a HTML tag and just add
    where appropriate

    How to use HTML in Swing Components

提交回复
热议问题