previous | start | next

## Borders

- Place a border around a panel to group its contents visually
- `EtchedBorder`: three-dimensional etched effect
- Can add a border to any component, but most commonly to panels:

      JPanel panel = new JPanel();
      panel.setBorder(new EtchedBorder());

- `TitledBorder`: a border with a title

      panel.setBorder(new TitledBorder(new EtchedBorder(), "Size"));

previous | start | next