protected void createComponents(IWizardPage page) { headerPanel = new DialogHeaderPanel(); updateHeaderPanel(page); JPanel headerContainer = new JPanel(); headerContainer.setLayout(new BorderLayout()); headerContainer.add(headerPanel, BorderLayout.CENTER); headerContainer.add(new JSeparator(SwingConstants.HORIZONTAL), BorderLayout.SOUTH); JComponent pageContents = page.createControls(); final DialogButtonsPanel buttonsPanel = getButtonsPanel(); JPanel bp = new JPanel(); bp.setLayout(new BorderLayout()); bp.add(new JSeparator(SwingConstants.HORIZONTAL), BorderLayout.NORTH); bp.add(buttonsPanel, BorderLayout.CENTER); this.setLayout(new BorderLayout()); this.add(headerContainer, BorderLayout.NORTH); if (pageContents != null) { this.add(pageContents, BorderLayout.CENTER); pageContents.repaint(); page.updateControls(); } this.add(bp, BorderLayout.SOUTH); }
private void updateHeaderPanel(IWizardPage page) { headerPanel.setTitle(page.getTitle()); headerPanel.setMessage(page.getTitle()); headerPanel.setMessageStatus(page.getStatus()); headerPanel.setRightLogo(page.getLogo()); }