Visual J++ synchronizes Visual representation of code changes and form views (code generation from visual layout) in both directions. Information about which methods (and classes) that are being modified is formatted into the source code. Similarly, modifications to the source code is sent to the Form Designer.
The two-way editing does not simultaneously modify source code and visual layout. The code that is used to create the visual layout is disabled while the Form Designer is in use. The layout is stored as code when the designer window is closed or the form is saved. Editing of the entire initForm function is locked until the Form Designer window is closed.
Edits in the Forms editor are not serialized as code until you click Save on the File menu, or when the forms editor is closed.
You can use the Form Designer to edit classes that adhere to the following syntax:
class isEditable extends [UserControl, Form, Design Page] {
Container components = new Container(this);
private void initForm() {
[form initialization code goes here]
}
}
The initialization code must adhere to certain parsing rules: