pagesByName = new HashMap();
componentPanel = new JPanel();
componentPanel.setLayout(layout);
JPanel buttonPanel = new JPanel();
buttonPanel.setLayout(new BoxLayout(buttonPanel, BoxLayout.X_AXIS));
buttonPanel.add(Box.createGlue());
backButton = new JButton(InternationalizationManager.getString("xmlgui.wizard.back"));
backButton.setActionCommand("wizard.back");
backButton.setEnabled(false);
backButton.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent evt) {
back();
}
});
buttonPanel.add(backButton);
buttonPanel.add(Box.createRigidArea(new Dimension(5, 0)));
nextButton = new JButton(InternationalizationManager.getString("xmlgui.wizard.next"));
nextButton.setActionCommand("wizard.next");
nextButton.setEnabled(false);
nextButton.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent evt) {
next();
}
});
buttonPanel.add(nextButton);
buttonPanel.add(Box.createRigidArea(new Dimension(15, 0)));
cancelButton = new JButton(InternationalizationManager.getString("xmlgui.wizard.cancel"));
cancelButton.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent evt) {
fireCancel();
}
});
buttonPanel.add(cancelButton);
JPanel lowerPanel = new JPanel();
lowerPanel.setLayout(new BoxLayout(lowerPanel, BoxLayout.Y_AXIS));
lowerPanel.add(new JHorizontalSeparator(10));
lowerPanel.add(Box.createVerticalStrut(5));
lowerPanel.add(buttonPanel);
lowerPanel.add(Box.createVerticalStrut(10));