Welcome to Scribd!
Academic Documents
Professional Documents
Culture Documents
Hobbies & Crafts Documents
Personal Growth Documents
Java Beans PDF
jar cf applett.jar applett.class ; e i the Fik ‘After you have designed an applet using the beanbox, you can use the MakeApplet item in the File menu to create a JAR file containing your new applet and all the beans it uses. When you select this menu item, it opens the Make an Applet dialog box you see in Figure 28.5. Figure 28.5: The Make an Applet dialog box. In this example, we'll use the applet we developed in the previous solution. We'll stick to the default JAR file name, myApplet . jar, and applet class, MyApplet. When we click OK, the myApplet . jar file is created. a. If you want to use any of the beans that come with the BDK in an applet JAR file, you'll have to compile them first and make sure the java compiler can find their class files. You'll find those beans in the demo\sunw\demo directory. In addition, you'll need to compile the AppletSupport . java file in the beanbox\sunw\beanbox directory and make sure the java compiler can find the resulting class files. The myApplet . jar file can be used with Web browsers and the Sun appletviewer (see the solution “Letting Applets Get from JAR Files,” earlier in the chapter, for more information). Here's the HIML page, we'll use let ‘eve Immediate Solutions