As you use the palette and property editor, NetBeans will generate source
code in the
MyPanel.java file.
You can view the source by clicking the Source button above the design
area.
Shown below is how the code initially looks. Note that some of the code is
suppressed since it should not be modified manually.