You can make classes out of almost any java.awt.class; from a stylized button to a panel containing panels containing other objects. You cannot make a class from the top level container (the applet or frame).
If you select a panel, you include all of its contained objects.
Three things happen:
Note: If you opened the visual builder by double-clicking the .vb file icon, these new files are created in the directory from which you launched Cosmo Code instead of in your project directory.
*A legal class name begins with a letter, _, or $ that is followed by any alphanumeric character, _, or $.
The class is now on the <Local> palette and can be instantiated in your workarea. Notice also that a popup label with your class name appears when the cursor is held over the icon, and quick help appears in the lower-left area of the visual builder window.
Each class you make generates a .class, .java, .vb, and .palette file.
Guide to the Cosmo Code Development Environment
12-96*518