在SWT / Jface表中本地查看复选框

时间:2021-09-04 22:20:17

Are there any tested solutions that enables me to have natively looking checkboxes in SWT tabes?

是否有任何经过测试的解决方案使我能够在SWT标签中看到原生复选框?

After long googling i found clever way to create image screenshoots of SWT checkbox buttons, but it has some weird bugs.

经过长时间的谷歌搜索,我找到了巧妙的方法来创建SWT复选框按钮的图像屏幕截图,但它有一些奇怪的错误。

Anyone has a tested real-life solution.

任何人都有经过测试的真实解决方案。

1 个解决方案

#1


1  

The blog entry you quote might be superseded by this JFace Snippet. Haven't tried that though.

您引用的博客条目可能会被此JFace代码段取代。虽然没试过。

But I'd simply place the checkboxes into the Table on your own like this? Powerful and native. I did use this in a real life solution. For huge tables (thousands of entries) you'll run out of handles, though. (Maybe using SWT.VIRTUAL would help, then.)

但我只是将这些复选框放在桌子上吗?强大而本土的。我确实在现实生活中使用了它。但是对于巨大的表(数千个条目),你将会用完句柄。 (也许使用SWT.VIRTUAL会有所帮助。)

#1


1  

The blog entry you quote might be superseded by this JFace Snippet. Haven't tried that though.

您引用的博客条目可能会被此JFace代码段取代。虽然没试过。

But I'd simply place the checkboxes into the Table on your own like this? Powerful and native. I did use this in a real life solution. For huge tables (thousands of entries) you'll run out of handles, though. (Maybe using SWT.VIRTUAL would help, then.)

但我只是将这些复选框放在桌子上吗?强大而本土的。我确实在现实生活中使用了它。但是对于巨大的表(数千个条目),你将会用完句柄。 (也许使用SWT.VIRTUAL会有所帮助。)