![]() Returns: the minimum dimensions to lay out the subcomponents of the specified container See Also: preferredLayoutSize(), Specified by: minimumLayoutSize in interface Overrides: minimumLayoutSize in class Parameters: target - the component which needs to be laid out Public minimumLayoutSize( target) Returns the minimum dimensions needed to layout the visible components contained in Specified by: layoutContainer in interface Overrides: layoutContainer in class Parameters: target - the specified component being laid out See Also: Container, The components in the target container in order to satisfy the constraints of this ![]() This method lets each component take its preferred size by reshaping ![]() Public void layoutContainer( target) Lays out the container. Public int getVgap() Gets the vertical gap between components. Public int getHgap() Gets the horizontal gap between components. Protected 3. calcTabs( target) Figure out tab stop x-positions comp) Specified by: addLayoutComponent in interface Overrides: addLayoutComponent in class Parameters: name - the name of the component comp - the component to be added Public static final VTOP See Also: Constant Field Values Constructor Detail ![]() Public static final VFILL See Also: Constant Field Values Public static final VCENTER See Also: Constant Field Values Public static final TAB_STOP See Also: Constant Field Values Public static final RIGHT_ALIGN See Also: Constant Field Values Public static final PARAGRAPH_BREAK See Also: Constant Field Values Public static final LINE_BREAK See Also: Constant Field Values Public static final LEFT_ALIGN See Also: Constant Field Values Public static final HFILL See Also: Constant Field Values Public static final CENTER_ALIGN See Also: Constant Field Values Methods inherited from class Ĭlone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait GetAlignment, getAlignOnBaseline, setAlignment, setAlignOnBaseline, toString Sets the vertical gap between components. Sets the horizontal gap between components. Removes the specified component from the layout. Returns the preferred dimensions for this layout given the visible components in the MoveComponents( target,Įdu.3. ruler)Ĭenters the elements in the specified row, if there is any slack. Returns the minimum dimensions needed to layout the visible components contained in Gets the vertical gap between components. Gets the horizontal gap between components. RiverLayout is LGPL licensed - use it freely in free and commercial programsįields inherited from class ĪddLayoutComponent( name, vcenter - Align following components vertically centered (default).vtop - Align following components vertically top aligned.right - Align following components to the right.center - Align following components horizontally centered.left - Align following components to the left (default).vfill - Extent component vertically (currently only one allowed).tab - Add a tab stop (handy for constructing forms with labels followed by fields).Without the "hfill" constraint, theĬomponent would take on its preferred size. "constraints" like this: add("br hfill", new JTextField("Your name here") The code above forcesĪ "line break" and extends the added component horizontally. Out horizontally, but one may add a string before the component being added to specify Much more powerful than FlowLayout: Components added with the add() method generally gets laid To how text is added to a word processor (Components flow like a "river". RiverLayout makes it very simple to construct user interfaces as components are laid out similar Public class RiverLayout extends implements, java.io.Serializable SUMMARY: NESTED | FIELD | CONSTR | METHODĮdu.3. All Implemented Interfaces:, java.io.Serializable
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |