#layoutmanager #java
layout manager
________________
Used to arrange AWT component in particular order.
It position & adjust the size of component.
Also adjust space arrangement between component ie horizontal space and vertical space.
The layout Manager is set by the setLayout() method.
void setLayout(Layoutmanager layoutobj).
The layoutobj is the desired layout manager object.
_______________________________________________
Layout manager Types
______________________
FlowLayout
BorderLayout
GridLayout
CardLayout
GridBagLayout
__________________________________________________
Border Layout
______________
Border Layout arrange component in five region east, west, north, south and center.
The constructor is
BorderLayout()
BorderLayout(int horz, int vert)
Five regions BorderLayout.CENTER, BorderLayout.EAST, BorderLayout.WEST, BorderLayout.NORTH and BorderLayout.SOUTH.
When adding component in applet window to set region use the function.
void add(Component compObj, object region)
En esta página del sitio puede ver el video en línea Java applet layout manager | EasyTechCode de Duración hora minuto segunda en buena calidad , que subió el usuario Java Source Code 22 junio 2022, comparta el enlace con amigos y conocidos, en youtube este video ya ha sido visto 46 veces y le gustó 2 a los espectadores. Disfruta viendo!