What can you do to ensure that the bean area item does not appear on the form at run time?

You wish to use a javaBean in a form. This javaBean has no visible component.
You use the Layout Editor to create a bean area item that implements this JavaBean. You want to
be able to see the bean area item in the Layout Editor so that you can easily interact with it at
design time.
What can you do to ensure that the bean area item does not appear on the form at run time?

You wish to use a javaBean in a form. This javaBean has no visible component.
You use the Layout Editor to create a bean area item that implements this JavaBean. You want to
be able to see the bean area item in the Layout Editor so that you can easily interact with it at
design time.
What can you do to ensure that the bean area item does not appear on the form at run time?

A.
Set its Visible property to No.

B.
Set its Height and Width properties to 1.

C.
Set its Implementation class programmatically at run time.

D.
You do not have to do anything; if Implementation Class does not display a visible component,
the bean area does not show at run time.

E.
You cannot avoid displaying the Bean area at run time.

Explanation:
* To hide the Bean on the canvas, select the Bean in the Layout editor. Set the
Width and Height
properties to 1, and set the background and
foreground color to the color of the canvas.
* In the Layout Editor, add a Bean Area to your Canvas. Since it will be a non-visual Bean, you
may want to make it small and put it out of the way of the other Items. However, it must be present
on the same Canvas as the visual Items to function.



Leave a Reply 2

Your email address will not be published. Required fields are marked *


ngayathri81

ngayathri81

A is the correct answer