开发者

Multi-line table cell

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜