top.add(iconLabel, BorderLayout.BEFORE_LINE_BEGINS);
}
}
protected Container createBannerArea() {
PaintPanel bannerPanel = new PaintPanel() {
@Override
public Dimension getPreferredSize() {
Dimension preferredSize = super.getPreferredSize();
if (preferredSize.width < _detailsPreferredWidth) {
preferredSize.width = _detailsPreferredWidth;
}
return preferredSize;
}
};
customizeBannerArea(bannerPanel);
bannerPanel.setLayout(new BorderLayout(10, 10));
addIcon(bannerPanel);
updateTitleComponent(bannerPanel);
bannerPanel.add(new JLabel(UIDefaultsLookup.getIcon("OptionPane.bannerIcon")), BorderLayout.AFTER_LINE_ENDS);
return bannerPanel;
}