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 are sent to the Forms 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 Forms Designer is in use. The layout is stored as code when the Forms Designer window is closed or the form is saved. Editing of the entire initForm function is locked until the Forms 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 Forms 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: