The size of the layout area in the main panel is
.
If no value is given to a parameter, then the default value will be
used. The default value for panelWidth and panelHeight is 500
pixels, and the default value for the margins is 0.
The main panel forms a coordinate system ranging from (0, 0) to (w - 1, h - 1). The X coordinate increases to the right, and the Y coordinate increases downward. So, the left upper corner of the main panel is (0, 0) and the left upper corner of the layout area is (lm, tm).
For example, to have the HelloWorld button shown in a
panel, we compile the program using the following command:
dj -w 100 -h 100 HelloWorld