[CLOSED] Unable to add more than one widget to a ContentPanel?
Feature or bug?
Here's a very simple example code:
The problem is, only the last widget (btn2) is really rendered. getWidgetCount() returns 1, as if btn1 was never added.
ContentPanel view = new ContentPanel();
TextButton btn1 = new TextButton("1");
TextButton btn2 = new TextButton("2");
System.out.println("view.getWidgetCount() = " + view.getWidgetCount()); // = 1
If it's a feature (like "you have to add another panel wrapping all buttons") - what would be getWidgetCount() for?