@Target(TYPE) @Retention(RUNTIME) public @interface SwingContainerAn annotation used to specify some swing-related information for the automatically generated
BeanInfoclasses. This annotation is not used if the annotated class has a corresponding user-defined
BeanInfoclass, which does not imply the automatic analysis.
feature attributewas introduced primarily for the Swing library. All Swing components extend the
Containerclass by design, so the builder tool assumes that all Swing components are containers. The
BeanInfoclasses with the
isContainerattribute allow to directly specify whether a Swing component is a container or not.
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description
delegateThe name of the getter method in the annotated class, which returns the corresponding Swing container, if it is not recommended to add subcomponents to the annotated class directly.
valueThe value that indicates whether the annotated class can be used as a container for other Swing components or not.
- the name of the getter method in the annotated class, which returns the corresponding Swing container, or an empty string if the method name is not set.