Making a Bean a Container

See Also 

You can use visual beans in your forms as containers. When you select a container component from the Palette window, the Form Editor assigns the component a layout manager. You can then add other components to the container component.

Note The Form Editor may not be available in your version of the IDE. You can enable the Form Editor module by choosing Tools and choosing Update Center.

To make a component a container:

  1. Choose Tools and choose Options from the main window.
  2. Expand IDE Configuration and expand Look and Feel and expand Palette and expand Beans.
  3. Select the bean you want to make a container.
  4. The Is Container property for that component appears in the property sheet pane of the Options window.
  5. Set the Is Container property to True.
Tip Because the Form Editor does not recognize any subcomponents in your bean, the subcomponents are not listed in the Inspector window. In addition, the container and layout manager code generated by the Form Editor could conflict with the original placement of the subcomponents.

To keep the Form Editor from creating container code that conflicts with the subcomponents, set Is Container to false. Although the subcomponents will not be listed in the Inspector window, they will appear in the Form Editor and should work correctly in your program.

See Also
Creating a Bean
Setting a Bean's Icon
Adding a Bean to the Palette Window
Customizing a Bean

Legal Notices