Esempio n. 1
0
  public AdvancedPanel() {

    super();

    contentPanel = getJContentPane();
    contentPanel.setVisible(true);
    contentPanel.setBorder(new EmptyBorder(new Insets(10, 10, 10, 10)));
    setLayout(new java.awt.BorderLayout());

    icon = getImageIcon();
    iconLabel = new JLabel();

    if (icon != null) iconLabel.setIcon(icon);

    iconLabel.setBorder(new EtchedBorder(EtchedBorder.RAISED));

    add(iconLabel, BorderLayout.WEST);
    add(contentPanel, BorderLayout.CENTER);
  }