super(true);
this.setLayout(new GridLayout(1, 2, 5, 5));
JLabel label1 = new JLabel("Matte Border");
JLabel label2 = new JLabel("Matte Border (Icon)");
label1.setHorizontalAlignment(JLabel.CENTER);
label2.setHorizontalAlignment(JLabel.CENTER);
Icon icon = new ImageIcon("plant.gif");
MatteBorder matte = new MatteBorder(35, 35, 35, 35, Color.blue);
MatteBorder matteicon = new MatteBorder(35, 35, 35, 35, icon);
label1.setBorder(matte);
label2.setBorder(matteicon);
add(label1);
add(label2);