SetupFrame frame = new SetupFrame();
InstallData data = InstallData.getInstance();
if ( data.isInstallationMode() ) {
PanelController controller1 = new PrologueCtrl();
frame.addPanel(controller1, controller1.getName());
PanelController controller2 = new AcceptLicenseCtrl();
frame.addPanel(controller2, controller2.getName());
PanelController controller3 = new ChooseDirectoryCtrl();
frame.addPanel(controller3, controller3.getName());
PanelController controller4 = new ChooseInstallationTypeCtrl();
frame.addPanel(controller4, controller4.getName());
PanelController controller5 = new ChooseComponentsCtrl();
frame.addPanel(controller5, controller5.getName());
PanelController controller6 = new InstallationImminentCtrl();
frame.addPanel(controller6, controller6.getName());
PanelController controller7 = new InstallationOngoingCtrl();
frame.addPanel(controller7, controller7.getName());
PanelController controller8 = new InstallationCompletedCtrl();
frame.addPanel(controller8, controller8.getName());
frame.setCurrentPanel(controller1.getName(), false, true);
} else {
PanelController controller1 = new UninstallationPrologueCtrl();
frame.addPanel(controller1, controller1.getName());
PanelController controller2 = new ChooseUninstallationTypeCtrl();
frame.addPanel(controller2, controller2.getName());
PanelController controller3 = new ChooseUninstallationComponentsCtrl();
frame.addPanel(controller3, controller3.getName());
PanelController controller4 = new UninstallationImminentCtrl();
frame.addPanel(controller4, controller4.getName());
PanelController controller5 = new UninstallationOngoingCtrl();