Uses of Class
javax.swing.Spring
Packages that use Spring
Package
Description
Provides a set of "lightweight" (all-Java language) components
that, to the maximum degree possible, work the same on all platforms.
-
Uses of Spring in javax.swing
Methods in javax.swing that return SpringModifier and TypeMethodDescriptionstatic SpringSpring.constant(int pref) Returns a strut -- a spring whose minimum, preferred, and maximum values each have the valuepref.static SpringSpring.constant(int min, int pref, int max) Returns a spring whose minimum, preferred, and maximum values have the values:min,pref, andmaxrespectively.SpringLayout.Constraints.getConstraint(String edgeName) Returns the value of the specified edge, which may be a derived value, or evennull.SpringLayout.getConstraint(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.SpringLayout.Constraints.getHeight()Returns the value of theheightproperty.SpringLayout.Constraints.getWidth()Returns the value of thewidthproperty.SpringLayout.Constraints.getX()Returns the value of thexproperty.SpringLayout.Constraints.getY()Returns the value of theyproperty.static SpringReturns a spring whose minimum, preferred, maximum and value properties are defined by the heights of the minimumSize, preferredSize, maximumSize and size properties of the supplied component.static SpringReturnsmax(s1, s2): a spring whose value is always greater than (or equal to) the values of boths1ands2.static SpringReturns-s: a spring running in the opposite direction tos.static SpringReturns a spring whose minimum, preferred, maximum and value properties are each multiples of the properties of the argument spring,s.static SpringReturnss1+s2: a spring representings1ands2in series.static SpringReturns a spring whose minimum, preferred, maximum and value properties are defined by the widths of the minimumSize, preferredSize, maximumSize and size properties of the supplied component.Methods in javax.swing with parameters of type SpringModifier and TypeMethodDescriptionstatic SpringReturnsmax(s1, s2): a spring whose value is always greater than (or equal to) the values of boths1ands2.static SpringReturns-s: a spring running in the opposite direction tos.voidLinks edgee1of componentc1to edgee2of componentc2.static SpringReturns a spring whose minimum, preferred, maximum and value properties are each multiples of the properties of the argument spring,s.voidSpringLayout.Constraints.setConstraint(String edgeName, Spring s) Sets the spring controlling the specified edge.voidSets theheightproperty, which controls the height of a component.voidSets thewidthproperty, which controls the width of a component.voidSets thexproperty, which controls thexvalue of a component's location.voidSets theyproperty, which controls theyvalue of a component's location.static SpringReturnss1+s2: a spring representings1ands2in series.Constructors in javax.swing with parameters of type SpringModifierConstructorDescriptionConstraints(Spring x, Spring y) Creates aConstraintsobject with the specified values for itsxandyproperties.Constraints(Spring x, Spring y, Spring width, Spring height) Creates aConstraintsobject with the specified values for itsx,y,width, andheightproperties.