Daniel Langer
Daniel Langer

Reputation: 106

Add Multiple Widgets to GWT flextable

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

Thanks

Upvotes: 2

Views: 2224

Answers (1)

AnAmuser
AnAmuser

Reputation: 1895

Just wrap them in a FlowPanel or another panel.

Something like

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);

Upvotes: 7

Related Questions