O'Reilly logo

JavaBeans Unleashed by Rick Leinecker, Dr. Donald Doherty

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Containers

JavaBeans containers hold, or contain, Java beans. The java.awt.Container class defines several add() methods for adding components to a container. There are also methods for removing components (the remove() method), getting the number of components held by the container (the getComponentCount() method), and getting an array of all of the components held by the container (the getComponents() method). Each bean sits in a container, and each bean can be a container itself.

Containers, by their very nature, need ways to keep track of the components added to them. Computer scientists have been hard at work for decades on algorithms (sequences of operations) that help manage collections of things in computer programs. The core Java platform ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required