Guarded text
Some parts of the source code generated by the Form Editor are not editable directly in the Editor. The background of these guarded blocks is shaded. Guarded text includes:
- The block of variable declarations for the components on the form.
- The
initComponents()
method, in which all the form initialization is performed (this method is called from the form's constructor).- The header (and trailing closing brace) of all event handlers.
Though the
initComponents()
method is not editable manually, you can affect the way it is generated by editing properties found on the Code Generation tab of the component's property sheet and by using the Form Connection custom property editors for the components in your form. See "Modifying generated code for components" below and Using the Form Connection property editor.
Contents | Prev | Next | Index |