Grid Layout placed its components by order of. įlow Layout provides five constrains for alignment.Ĭ) FlowLayout(align, horizontalGap, verticalGap) : It is used to specify the alignment of components where horizontal Gap is equals to horizontalGap and vertical Gap is equals to verticalGap.Įxample: import java.awt.* import java.util.* import javax.swing. We tackled about Flow Layout and Border Layout from our previous post. ī) FlowLayout(align): It is used to specify the alignment of components with default horizontal and vertical Gap. There are three constructors in Flow Layout Class.Ī) FlowLayout() : It is used to create center align component with default horizontal and vertical Gap.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |