Now you've gone over the design patterns you follow to create a bean, but what about all of those applets that you already wrote? Do you need to throw all of that work out and start all over to create beans? No! Java provides support for converting all of those Java applets into JavaBeans-compatible components. In this section, you convert a Java applet into a bean. Once you're finished you can convert all of your applets into beans.
You will convert a Java applet named LogoApplet (see Listing 4.1). LogoApplet displays business or company logos. In this case, it displays the Sams logo found in the samslogo.jpg file.
package sams.applet; import java.awt.Graphics; ...