April 2018
Intermediate to advanced
910 pages
33h 21m
English
For the most part, BeanInfo classes are automatically generated at runtime. The exception is with Swing classes. Those classes generate BeanInfo classes based on the @beaninfo javadoc tags. This is done at compile time, not runtime. In Java 9, the @beaninfo tags have been replaced with @interface JavaBean, @interface BeanProperty, and @interface SwingContainer annotations.
These new annotations are used to set the corresponding attributes based on the optional elements noted in the previous sections. As an example, the following code snippet sets the attributes for a SwingContainer:
package javax.swing; public @interface SwingContainer { boolean value() default false; String delegate() default ""; }
This provides us with ...