It creates and returns a ParallelGroup that aligns it's elements along the baseline. It notify that a Component has been added to the parent container.ĪddLayoutComponent(String name, Component component)ĬreateBaselineGroup(boolean resizable, boolean anchorBaselineToTop) It creates a GroupLayout for the specified Container.ĪddLayoutComponent(Component component, Object constraints) It indicates the preferred size from the component or gap should be used for a particular range value. It indicates the size from the component or gap should be used for a particular range value. It is a Group that positions and sizes its elements sequentially, one after another. It is a Group that aligns and sizes it's children. Group provides the basis for the two types of operations supported by GroupLayout: laying out components one after another (SequentialGroup) or aligned (ParallelGroup). Nested Classes Modifier and TypeĮnumeration of the possible ways ParallelGroup can align its children. Each component must exist in both a horizontal and vertical group, otherwise an IllegalStateException is thrown during layout or when the minimum, preferred, or maximum size is requested. That is, there is a group representing the horizontal axis, and a group representing the vertical axis. GroupLayout treats each axis independently. The GroupLayout class provides methods such as createParallelGroup() and createSequentialGroup() to create groups. SequentialGroup positions its child sequentially one after another whereas ParallelGroup aligns its child on top of each other. Group is an abstract class, and two concrete classes which implement this Group class are SequentialGroup and ParallelGroup. The grouping is done by instances of the Group class. GroupLayout groups its components and places them in a Container hierarchically.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |