the dwtx.ui.forms have the feature to load the gui elements by XML text. This can't be ported 1-1 to D, because D has a different XML parser in the runtime as Java does. This is very separated and independant from the remaining dwt stuff. Is someone interested in doing this implementation? See dwtx\ui\internal\forms\widgets\FormsTextModel.d