villapremium.blogg.se

Java flowlayout new line
Java flowlayout new line




java flowlayout new line

Sets the horizontal gap between the components. Removes the specified component from this border layout. Void removeLayoutComponent(Component comp) Returns the maximum dimensions for this layout given the components in the specified target container.ĭimension minimumLayoutSize(Container target)ĭetermines the minimum size of the target container using this layout manager.ĭimension preferredLayoutSize(Container target)ĭetermines the preferred size of the target container using this layout manager, based on the components in the container. Lays out the container argument using this border layout.ĭimension maximumLayoutSize(Container target) Invalidates the layout, indicating that if the layout manager has cached information it should be discarded. Returns the vertical gap between the components. Returns the horizontal gap between the components.įloat getLayoutAlignmentX(Container parent)įloat getLayoutAlignmentY(Container parent) If the layout manager uses a per-component string, adds the component comp to the layout, associating it with the string specified by name. Void addLayoutComponent(String name, Component comp) Void addLayoutComponent(Component comp, Object constraints)Īdds the specified component to the layout, using the specified constraint object. Static String WEST − The west layout constraint (left side of the container).Ĭonstructs a new border layout with no gaps between the components.Ĭonstructs a border layout with the specified gaps between the components. Static String SOUTH − The south layout constraint (bottom of the container). Static String PAGE_START − The component comes before the first line of the layout's content. Static String PAGE_END − The component comes after the last line of the layout's content. Static String NORTH − The north layout constraint (top of the container). Static String LINE_START − The component goes at the beginning of the line direction for the layout. Static String LINE_END − The component goes at the end of the line direction for the layout.

java flowlayout new line

Static String EAST − The east layout constraint (right side of the container). Static String CENTER − The center layout constraint (middle of the container). Static String BEFORE_LINE_BEGINS − Synonym for LINE_START. Static String BEFORE_FIRST_LINE − Synonym for PAGE_START. Static String AFTER_LINE_ENDS − Synonym for LINE_END. Static String AFTER_LAST_LINE − Synonym for PAGE_END. Class Declarationįollowing is the declaration for class −įollowing are the fields for class − Each region can contain only one component and each component in each region is identified by the corresponding constant NORTH, SOUTH, EAST, WEST, and CENTER. The class BorderLayout arranges the components to fit in the five regions: east, west, north, south, and center.






Java flowlayout new line