BorderLayout (LayoutManagers)Java LayoutManagersThe LayoutManagers are used to arrange components in a particular manner. LayoutManager is an interface that is implemented by all the classes of layout managers. There are following classes that represents the layout managers:
Java BorderLayoutThe BorderLayout is used to arrange the components in five regions: north, south, east, west and center. Each region (area) may contain one component only. It is the default layout of frame or window. The BorderLayout provides five constants for each region:
Constructors of BorderLayout class:
Example of BorderLayout class: Next TopicGridLayout
|