SwingContainer

SwingContainer is an annotation type. We use this annotation to specify a swing-related property so that we can automatically generate BeanInfo classes. This is a new annotation for Java 9.

The SwingContainer annotation has the following optional elements:

  • String delegate
  • boolean value

Now that we have reviewed JavaBean, BeanProperty, and SwingContainer, let's take a look at the BeanInfo classes.

Get Java 9: Building Robust Modular Applications now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.