/** * Register a wizard panel * * @param id the panel ID * @param panel the panel */ protected void registerWizardPanel(Object id, WizardPanel panel) { panel.key = id; panel.wizard = this; panels.add(panel); panelMap.put(id, panel); cardPanel.add(panel.getPanel(), panel.toString()); if (firstPanel == null) { firstPanel = panel; currentPanel = panel; setCurrentPanel(panel); pack(); } }