public StandaloneWizard()
{
wizardController = new LinearWizardController(new WizardEditorModel(), new DefaultBindingFactory());
wizardController.addPropertyChangeListener(new CloseListener());
final DataSourceAndQueryStep dataSourceAndQueryStep = new DataSourceAndQueryStep();
// add the steps ..
wizardController.addStep(new LookAndFeelStep());
wizardController.addStep(dataSourceAndQueryStep);
wizardController.addStep(new LayoutStep());
wizardController.addStep(new FormatStep());
try
{
final XulDomContainer mainWizardContainer = new SwingXulLoader().loadXul(MAIN_WIZARD_PANEL);
new WizardContentPanel(wizardController).addContent(mainWizardContainer);
wizardController.registerMainXULContainer(mainWizardContainer);
final Document documentRoot = mainWizardContainer.getDocumentRoot();
final XulDialog root = (XulDialog) documentRoot.getRootElement();
final Window window = (Window) root.getRootObject();
final DesignTimeContext designTimeContext =
new DefaultWizardDesignTimeContext(wizardController.getEditorModel(), window);
dataSourceAndQueryStep.setDesignTimeContext(designTimeContext);
wizardController.setDesignTimeContext(designTimeContext);
final XulRunner runner = new SwingXulRunner();
runner.addContainer(mainWizardContainer);