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

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

Introduction

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

The text is from its open source code.

Field

StringNORTH
Specifies the top edge of a component's bounding rectangle.
StringSOUTH
Specifies the bottom edge of a component's bounding rectangle.
StringEAST
Specifies the right edge of a component's bounding rectangle.
StringWEST
Specifies the left edge of a component's bounding rectangle.
StringVERTICAL_CENTER
Specifies the vertical center of a component's bounding rectangle.

Constructor

SpringLayout()
Constructs a new SpringLayout.

Method

SpringgetConstraint(String edgeName, Component c)
Returns the spring controlling the distance between the specified edge of the component and the top or left edge of its parent.
ConstraintsgetConstraints(Component c)
Returns the constraints for the specified component.
voidputConstraint(String e1, Component c1, int pad, String e2, Component c2)
Links edge e1 of component c1 to edge e2 of component c2, with a fixed distance between the edges.
voidputConstraint(String e1, Component c1, Spring s, String e2, Component c2)
Links edge e1 of component c1 to edge e2 of component c2.
voidremoveLayoutComponent(Component c)
Removes the constraints associated with the specified component.