Source code generated and parsed by the visual editor

There are different styles or ways for writing Java code. The visual editor uses a particular style for its generated Java code.

The visual editor for Java generates valid Java code that can be properly compiled and run. In addition, when the visual editor parses existing Java code, it uses rules to determine which elements of the code to try to visualize in the Design view.

Rules for parsable code

The visual editor for Java attempts to visualize code in the Design view if the code meets any of the following criteria:

There are other requirements that the visual editor checks before visualizing a component on the graphical Design view:

Most expressions are successfully parsed, but not all expressions can be correctly evaluated. In this case a warning sign will be shown against the Java bean in the views, and the reason for the failure will be shown in the status line when the bean is selected on the Design view or Java Beans view. A warning icon will also display on the canvas.

Code generated by the visual editor

 

Parent topic

Source code generation in the visual editor