Java


Java Tutorial


Admission Enquiry Form

  

Java Layout Manager

Java Swing Layout Manager

A layout refers to arranging and placing of the components in a container,much like arranging the furniture in a house.
Java has introduced a unique way of creating User Interface and displaying the objects on the screen.Java has an interface called the LayoutManager, which belongs to the java.awt package. This is used for placing objects in a container to display on the screen without specifying the row,column position.
A layout manager determines how components will be arranged when they are added to a container(screen).
There are following classes that represents the layout managers:

  1. java.awt.FlowLayout
  2. java.awt.BorderLayout
  3. java.awt.GridLayout
  4. java.awt.CardLayout