1

Swing Layouts :- Understanding the Border Layout


Border Layout is one of the most widely used Layouts in swing Applications. It allows you to place swing components in the North ,South ,West ,East and Center of your frame (or parent component) easily using the constants BorderLayout.NORTH,BorderLayout.SOUTH,BorderLayout.EAST,BorderLayout.WEST,BorderLayout.CENTER .
BorderLayout class has two constructors as follows:-
  1. BorderLayout()
  2. BorderLayout(int horizontal_gap,int vertical_gap);