通过 uitable 中的列表框进行多项选择

Multiple selection made via list box in uitable

我有一个合适的,最初的最后两列用作弹出菜单,只允许一个选择。

uitable('blah blah blah',...
        'ColumnFormat'{'logical','char',cell_array1,cell_array2},...
        'ColumnEditable',[true false true true],...
        'Data',[blah blah cell_array2 cell_array2])

现在我的客户希望能够进行多项选择(通过按住 CTRL 或其他方式)。

我的理解是弹出式菜单不允许多选,但是列表框可以。

我找不到将列表框放入 uitable 的方法。

我愿意接受任何其他方式。

使用 Matlab uicontrols / uitable 等你能做的只有这么多。如果你只求助于纯粹的 java 解决方案,你将获得最大的灵活性,例如出色的基于摇摆的 JIDE Grids which are pre-packaged with each Matlab release. By the way, uitable is not much more than a trimmed-down version of Jide table in the first place. There's also a number of articles on using Jide within Matlab 可以帮助您入门。