I'd like write a layout manager for j2me. I already have widgets and panels (panel is a set of widgets in this context). Now I'd like to add dynimc layout management so when i call doLayout on the outer most panel, internal widgets and panels rearrange according device's width and height.
I was wondering whether there any well known patterns for layout managers.