01: package org.dbbrowser.ui.helper.exporthelper.wizard.panel;
02:
03: import java.awt.BorderLayout;
04: import java.awt.Dimension;
05: import infrastructure.propertymanager.PropertyManager;
06: import javax.swing.BorderFactory;
07: import javax.swing.ImageIcon;
08: import javax.swing.JLabel;
09: import javax.swing.JPanel;
10: import org.dbbrowser.ui.UIControllerForQueries;
11:
12: public class AbstractWizardPanel extends JPanel {
13: private static final long serialVersionUID = UIControllerForQueries.version;
14: private static final String FILENAME_FOR_ICON = PropertyManager
15: .getInstance().getProperty("dbbrowser-export-wizard-image");
16: private String panelTitle = "";
17: private JLabel labelForImage = null;
18: private JLabel title = null;
19:
20: /**
21: * Constructer
22: *
23: */
24: public AbstractWizardPanel(String panelTitle) {
25: this .panelTitle = panelTitle;
26: labelForImage = new JLabel(new ImageIcon(FILENAME_FOR_ICON));
27: title = new JLabel(this .panelTitle, JLabel.CENTER);
28: title.setBorder(BorderFactory.createEtchedBorder());
29:
30: this .setLayout(new BorderLayout(20, 20));
31:
32: //Add splash screen image on left
33: this .add(labelForImage, BorderLayout.WEST);
34:
35: //Add title on top
36: this .add(title, BorderLayout.NORTH);
37:
38: this .setSize(new Dimension(600, 400));
39: }
40: }
|