// Use a BorderLayout with 10-pixel margins between components
this.setLayout(new BorderLayout(10, 10));
for(int i = 0; i < 5; i++) { // Add children to the pane
this.add(new JButton(borders[i]), // Add this component
borders[i]); // Using this constraint
}