2

is there a way to do this? I am trying to add a textbox and a button within one cell in a flextable.

Thanks

4

1 回答 1

7

只需将它们包装在 FlowPanel 或其他面板中即可。

就像是

Widget widget1 = new Label("Hello");
Widget widget2 = new Label("World");
FlowPanel panel = new FlowPanel();
panel.add(widget1);
panel.add(widget2);
// get the table
table.setWidget(x, y, panel);
于 2012-12-01T23:40:43.543 回答