Java javax.swing BoxLayout fields, constructors, methods, implement or subclass

Example usage for Java javax.swing BoxLayout fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for javax.swing BoxLayout.

The text is from its open source code.

Field

intX_AXIS
Specifies that components should be laid out left to right.
intY_AXIS
Specifies that components should be laid out top to bottom.
intLINE_AXIS
Specifies that components should be laid out in the direction of a line of text as determined by the target container's ComponentOrientation property.
intPAGE_AXIS
Specifies that components should be laid out in the direction that lines flow across a page as determined by the target container's ComponentOrientation property.

Constructor

BoxLayout(Container target, int axis)
Creates a layout manager that will lay out components along the given axis.

Method

intgetAxis()
Returns the axis that was used to lay out components.
floatgetLayoutAlignmentX(Container target)
Returns the alignment along the X axis for the container.
floatgetLayoutAlignmentY(Container target)
Returns the alignment along the Y axis for the container.
ContainergetTarget()
Returns the container that uses this layout manager.
voidinvalidateLayout(Container target)
Indicates that a child has changed its layout related information, and thus any cached calculations should be flushed.
voidlayoutContainer(Container target)
Called by the AWT

HOME | Copyright © www.java2s.com 2016