Example #1
0
 /**
  * The method layouts all childrens bei the widget, using containers layout manager. The method is
  * called bei framework, before it paints a window-
  */
 protected void pack() {
   for (int i = 0; i < _widgets.size(); i++) {
     Widget widget = (Widget) _widgets.elementAt(i);
     packChild(widget, _constraints.get(widget));
     if (widget instanceof WidgetContainer) {
       ((WidgetContainer) widget).pack();
     }
   }
 }