Using BorderLayout
BorderLayout has five cells called North, South, East, West, Center.
Components are assigned to these cells with the add() method, e.g.:
add(new TextField(“Title”, 50), BorderLayout.NORTH) ;
add(new TextField(“Status”, 50), BorderLayout.SOUTH) ;
(default second argument is BorderLayout.CENTER).
Default layout for frame content pane.