GUI Builder Connection Wizard: Enter Parameters
See Also
The Connection wizard enables you to establish a connection between two components triggered by an event within a form without having to write code manually.
You can launch the Connection wizard by clicking the Connection Mode button (
)
in the GUI Builder toolbar and selecting a component that will generate the event and then a component that will receive it in the GUI Builder or
Navigator window.
In the Enter Parameters page of the Connection wizard, you can choose to get the parameter from any of the following:
- Value. Enter the property value or method parameter into
the text field. This option is available only if the value is a primitive
type (int, float, and so on) or a String.
- Bean. Acquire the value from a bean on the form. This
option is available only if there are beans of the specified type to
choose from (for example, type Component or Object).
- Property. Acquire the value from a property of a component
on the form. Click the ellipsis (...) button to display a dialog box
from which you can select the component and its property. Only properties
of the correct type are listed.
- Method Call. Acquire the value from a method call of
a component on the form. Click the ellipsis (...) button to display a
dialog box from which you can select the component and its method. Only
methods that return the correct type and that do not take any parameters
are listed.
- User Code. Write your own code to acquire the property
or method parameter value.
The source code generated for each of the parameters is displayed in the Generated Parameters Preview field.
Clicking the Finish button completes the wizard and generates the code to connect the form's components.
- See Also
- Managing Component Events
- Setting Events with the Connection Wizard
- Designing Java GUIs with the GUI Builder
Legal Notices