SWT Table with variable row height: Working on Linux, but not Mac/Windows

后端 未结 3 1485
-上瘾入骨i
-上瘾入骨i 2021-02-09 15:25

Problem: I need an SWT Table (JFace TableViewer) with variable row height. In fact, I solved this on my development machine (running Ubuntu 10.10). Unfortunately, this doesn\'

相关标签:
3条回答
  • 2021-02-09 15:54

    We use the Nebula Grid widget. http://www.eclipse.org/nebula/widgets/grid/grid.php

    It is exceptionally flexible. In our case we use it to get more of html style table functionality combined with a treeViewer widget.

    Screenshot alt text

    0 讨论(0)
  • 2021-02-09 16:01

    I can confirm that on Win32 table rows can only have same height. See for example this bug report. The workaround from bug 148039 makes setItemHeight() accessible, but that doesn't change this restriction.

    0 讨论(0)
  • 2021-02-09 16:05

    I ran into this problem as well -- needing an SWT table widget that could support cells of varying heights. As the.duckman says, Win32 table rows cannot do this. We ended up using the KTable widget. It doesn't use the native OS tables.

    http://sourceforge.net/projects/ktable/

    It worked okay for us, but it's got some quirks. Luckily the source code is fairly easy to modify to suit your needs.

    0 讨论(0)
提交回复
热议问题