当前位置: 技术问答>java相关
Real chanlleges here, only for experts(auto expandable table cell)
来源: 互联网 发布时间:2015-06-11
本文导语: Hello, Could anyone help me with this. One column of my table contains very long string like this: "ddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd" I don't want to adjust the column width to that much, but when use click on the cell...
Hello,
Could anyone help me with this.
One column of my table contains very long string like this:
"ddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd"
I don't want to adjust the column width to that much, but when use click on the cell, all the text should comes out while not resizing the column. Like what microsft doing in their excel sheet.
Can anyone help me with this?
Could anyone help me with this.
One column of my table contains very long string like this:
"ddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd"
I don't want to adjust the column width to that much, but when use click on the cell, all the text should comes out while not resizing the column. Like what microsft doing in their excel sheet.
Can anyone help me with this?
|
You can set a label to show the long string.
Then add this label to your table.
Remember all your JComponents are all Container which can add any other components.
Then adjust the left corner point.setLocation();
Then your table should add some mouse listener to set the label show or hide.
Then add this label to your table.
Remember all your JComponents are all Container which can add any other components.
Then adjust the left corner point.setLocation();
Then your table should add some mouse listener to set the label show or hide.