如何获取类似excel的JTable标题
我想创建一个 JTable,其全局布局看起来有点像 excel 的。
为了获得这个结果,我使用了来自 crionics.com 的可分组标头的代码,但是正如您所看到的,标头的组件没有垂直对齐。
此外,我希望能够在需要的文档行中编写多行文本,但我无法同时使用多行单元格、多行标题单元格和可分组列。
I would like to create a JTable whose global layout would look somewhat like excel's.
To get this result I used the Groupable Header's code from crionics.com, but as you can see components of the header are not aligned vertically.
Moreover, I would like to be able to write multi line text in the rows of the documents where it's needed, but I am not able to get both multi line cells, multi line header cells, and groupable columns to work at the same time.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
查看 JIDE 网格。如果您正在从事商业项目,那么购买此类东西比自己编写要便宜。
Look into the JIDE Grids. If you are working for commercial project, it's cheaper to buy these kind of things than write them yourself.