开发者

Multi-line table cell

开发者 https://www.devze.com 2023-03-21 02:35 出处:网络
I have an JTable component wh开发者_如何学Pythonere I display some data. One of my column is a string, which is too long for my cell. How can I make cells in that column multi-line?put into TableCell

I have an JTable component wh开发者_如何学Pythonere I display some data. One of my column is a string, which is too long for my cell. How can I make cells in that column multi-line?


put into TableCell f.e. JTextArea or another JComponents that allows multiline output


There are some examples on the Internet about how to do this. Seems like its a pretty common task developers try and accomplish with JTables. Basically what you want to do is implement your own cell editor using AbstractCellEditor/JTextArea. Heres a link to one such example with source code:

http://www.jroller.com/santhosh/entry/multiline_in_table_cell_editing1

0

精彩评论

暂无评论...
验证码 换一张
取 消