Layout managers in java

Layout managers

The actual appearance of AWT components on screen is determined by 2 things

  • Order in which they are added to the panel or container
  • The layout manager that the container is using to arrange them on screen

A layout manager is a class that is useful to arrange components in a particular manner in a frame or container.
There are 5 Layout managers

  • FlowLayout(Default)
  • BorderLayout
  • GridLayout
  • CardLayout
  • BoxLayout

Leave a Reply

Your email address will not be published. Required fields are marked *