Revision 37801
trunk/libraries/libUIComponent/src/org/gvsig/gui/beans/wizard/WizardPanelWithLogo.java | ||
---|---|---|
36 | 36 |
wizardComponents = new DefaultJWizardComponents(); |
37 | 37 |
init(); |
38 | 38 |
} |
39 |
|
|
40 |
public WizardPanelWithLogo() { |
|
41 |
wizardComponents = new DefaultJWizardComponents(); |
|
42 |
this.logo = null; |
|
43 |
init(); |
|
44 |
} |
|
39 | 45 |
|
40 | 46 |
private void init() { |
41 |
JPanel logoPanel = new JPanel(); |
|
42 | 47 |
|
43 |
logoPanel.add(new JLabel(logo)); |
|
44 |
logoPanel.setBackground(Color.WHITE); |
|
45 | 48 |
this.setLayout(new BorderLayout()); |
46 |
this.add(logoPanel, BorderLayout.WEST); |
|
49 |
if (logo != null) { |
|
50 |
JPanel logoPanel = new JPanel(); |
|
51 |
logoPanel.add(new JLabel(logo)); |
|
52 |
logoPanel.setBackground(Color.WHITE); |
|
53 |
this.add(logoPanel, BorderLayout.WEST); |
|
54 |
} |
|
55 |
|
|
47 | 56 |
this.add(wizardComponents.getWizardPanelsContainer(), |
48 | 57 |
BorderLayout.CENTER); |
49 | 58 |
|
Also available in: Unified diff