However the alignment of elements in the caption bar of that skeletal is simply skeletal, without CSS to align them. Therefore, I wrote an improvement that includes alignment CSS, but it is still skeletal because the background of the caption bar is transparent and that leaves it to you to filling in the background.
This improvement class DialogPanel, besides having a more presentable caption bar,
- uses UIBinder to define the caption bar,
- extends DecoratedPanel rather than extending or patching DialogBox,
- no longer has a ScrollPanel, because scroll feature is best left to the end-user-programmer by setWidget method.
The source code is found in google code repository at
- http://code.google.com/p/synthfuljava/source/browse/trunk/gwt/widgets/org/synthful/gwt/widgets/client/ui/DialogPanel.java and
My next plan is to make the DialogPanel resize-able by mouse. So, keep a lookout for its enhancement.