SWT Table.setLinesVisible(false) 似乎不适用于 Windows 7
我们公司正在尝试将每个人从 Window XP 迁移到 Windows 7,因此我正在测试一些自行开发的 SWT 应用程序,以确保它们仍然可以在 Windows 7 上运行。大多数应用程序仍然可以运行,但有一些奇怪的怪癖。我已经能够解决其中的大部分问题,但这里的问题我却没有解决。
SWT 表的列之间似乎总是有一条丑陋的黑线。我尝试调用 setLinesVisible(false),但无济于事。我知道这似乎不是一个重要的区别,但我们的用户可能非常挑剔。有没有人有类似的将应用程序迁移到 Windows 7 的经历,或者对我可以尝试什么有任何建议?
之前(在 XP 中 - 竖起大拇指):
之后(在 Windows 7 中 - 竖起大拇指 [注意黑线]):
有什么建议吗?
Our company is trying to move everyone from Window XP to Windows 7, so I'm testing some of the home-grown SWT applications to make sure that they still work on Windows 7. Most of them still do, but there's some weird quirks. I've been able to work out most of them, but the one here I'm having no luck with.
SWT Tables always seem to have an ugly black line between columns. I've tried calling setLinesVisible(false), but to no avail. I know this doesn't seem like an important difference, but our users can be quite picky. Has anyone had similar experiences of migrating apps to windows 7 or have any suggestions on what I can try?
Before (in XP - thumbs up):
After (in Windows 7 - thumbs down [Notice the black lines]):
Any suggestions?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
尝试将以下侦听器添加到您的表中:
这应该可以解决垂直线的问题。这是它在我的示例表上的外观:
没有侦听器(请注意垂直线,在我的情况下它们不是黑色的,它们是灰色的..但它们仍然可见):
现在添加了侦听器:
Try adding the following listener to your table:
This should solve your problems with vertical lines. Here's how it looks on my example table:
Without the listener (notice the vertical lines, they are not black in my case, they're gray..but they're still visible):
And now with the listener added: