public class SpringLayoutextends Objectimplements LayoutManager2A SpringLayout lays out the children of its associated container according to a set of constraints. See How to Use SpringLayout in The Java Tutorial for examples of using SpringLayout.Each constraint, represented by a Spring object, controls the vertical or horizontal distance between two component edges. The edges can belong to any child of the container, or to the container itself. For example, the allowable width of a component can be expressed using a constraint that controls the distance between the west (left) and east (right) edges of the component. The allowable y coordinates for a component can be expressed by constraining the distance between the north (top) edge of the component and the north edge of its container.Every child of a SpringLayout-controlled container, as well as the container itself, has exactly one set of constraints associated with it. These constraints are represented by a SpringLayout.Constraints object. By default, SpringLayout creates constraints that make their associated component have the minimum, preferred, and maximum sizes returned by the component's Component.getMinimumSize(), Component.getPreferredSize(), and Component.getMaximumSize() methods. The x and y positions are initially not constrained, so that until you constrain them the Component will be positioned at 0,0 relative to the Insets of the parent Container.You can change a component's constraints in several ways. You can use one of the putConstraint methods to establish a spring linking the edges of two components within the same container. Or you can get the appropriate SpringLayout.Constraints object using getConstraints and then modify one or more of its springs. Or you can get the spring for a particular edge of a component using getConstraint, and modify it. You can also associate your own SpringLayout.Constraints object with a component by specifying the constraints object when you add the component to its container (using Container.add(Component, Object)).
Java
Topic: Class
Explain Class SpringLayout in java?
Browse random answers:
What is a class?
What is an immutable class?
Immutable objects are automatically thread-safe –true/false?
Which classes in java are immutable?
What are the advantages of immutability?
Use the following syntax to declare a class in Java:
What are the methods in Object?
What is singleton?
What is Class.forName() does and how it is useful?
What is the Locale class?
Can we declare the main method of our class as private?
How an object is serialized in java?
Can a class have multiple constructors?
Can a class be a super class and a sub-class at the same time
How objects of a class are created if no constructor is defined in the class?
What is the purpose of Void class?
Write simple example of class?
What is inner class?
What is nested class?
There are two classes named classA and classB. Both classes are in the same package. Can a private member of classA can be accessed by an object of classB?
A person says that he compiled a java class successfully without even having a main method in it? Is it possible?
Is it possible to define a method in Java class but provide it’s implementation in the code of another language like C?
Explain Interface ActiveEvent?
Explain Class PopupFactory in java?
Explain Class ProgressMonitor in java ?
Explain Class ProgressMonitor.AccessibleProgressMonitor in java?
Explain Class ProgressMonitorInputStream in java ?
Explain Class RepaintManager in java?
Explain Interface RootPaneContainer in java?
Explain Class RowSorter.SortKey in java ?
Explain Interface ScrollPaneConstants in java?
Explain Class SortingFocusTraversalPolicy?
Explain Enum SortOrder in java ?
Explain Class Spring in java?
Explain Class SpringLayout in java?
Explain Class Timer in java?
Explain public BeanDescriptor(Class<?> beanClass)?
Explain public BeanDescriptor(Class<?> beanClass, Class<?> customizerClass)
Explain method getBeanClasspublic Class<?> getBeanClass()?
Explain method getCustomizerClasspublic Class<?> getCustomizerClass()?
Explain public static Object instantiate(ClassLoader cls, String beanName) throws IOException, ClassNotFoundException
Explain public static Object instantiate(ClassLoader cls, String beanName, BeanContext beanContext) throws IOException, ClassNotFoundException?
Explain public static Object instantiate(ClassLoader cls, String beanName, BeanContext beanContext, AppletInitializer initializer) throws IOException, ClassNotFoundException?
Explain public static Object getInstanceOf(Object bean, Class<?> targetType)?
Explain method isInstanceOfpublic static boolean isInstanceOf(Object bean, Class<?> targetType)?
Explain method isDesignTimepublic static boolean isDesignTime()?
Explain public DefaultPersistenceDelegate(String[] constructorPropertyNames)
Explain Class SimpleBeanInfojava.lang.Object java.beans.SimpleBeanInfo?