This example shows how to create a modal dialog with an embedded BorderLayout using LayoutDialog.
Note that the js is not minified so it is readable. See layout.js for the full source code.