Adanced Java Programming
Layout Managers
Smt.M.Jeevana Sujitha
Assistant Professor
Department of Computer Science and Engineering
SRKR Engineering College, Bhimavaram, A.P. - 534204
OBJECTIVES
The Objective of this lecture is
Need of Layout Managers
Layout Managers
What is Layout Manager?
Layout Managers
Layout Managers
Border Layout:
region.
Layout Managers
Border Layout:
BorderLayout() : Creates a border layout but with no gaps between the components
Layout Managers
Grid Layout:
arrange the components in a
rectangular grid.
Layout Managers
Grid Layout:
Layout Managers
Flow Layout:
Layout Managers
Layout Managers
Constructors of FlowLayout:
Layout Managers
Card Layout:
Layout Managers
Layout Managers
GridBag Layout:
Layout Managers
Box Layout:
BoxLayout( Container c, int axis) : creates a box layout that arranges the components with the given axis.
Layout Managers
public static final int X_AXIS
public static final int Y_AXIS
THANK YOU