@Target(TYPE) @Retention(RUNTIME) public @interface SwingContainer
This annotation is not used if the annotated class
has a corresponding user-defined
which does not imply the automatic analysis.
feature attribute was introduced primarily for the Swing library.
All Swing components extend the
class by design, so the builder tool assumes that all Swing components
are containers. The
isContainer attribute allow to directly specify
whether a Swing component is a container or not.
|Modifier and Type
The 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.
The value that indicates whether the annotated class can be used as a container for other Swing components or not.
true if the annotated class is a Swing container;
Submit a bug or feature
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
Copyright © 1993, 2017, Oracle and/or its affiliates. 500 Oracle Parkway
Redwood Shores, CA 94065 USA. All rights reserved.