Java applet layout manager | EasyTechCode

Published: 22 June 2022
on channel: Java Source Code
46
2

#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)


On this page of the site you can watch the video online Java applet layout manager | EasyTechCode with a duration of hours minute second in good quality, which was uploaded by the user Java Source Code 22 June 2022, share the link with friends and acquaintances, this video has already been watched 46 times on youtube and it was liked by 2 viewers. Enjoy your viewing!