Prentice Hall and Sun Microsystems. Personal use only; do not redistribute.
12.3 Including Applets for the Java Plug In
279
Example: Building Shadowed Text
In Section 7.5 (Using Servlets to Generate GIF Images), Listings 7.9 and
7.11 show a 
JFrame
 that uses Java 2D to create shadowed text in the size and
font of the user's choosing. Listings 12.10 and 12.11 present an applet that
uses Swing components to control this frame. 
Since the applet uses Swing and Java 2D, it can run only with the Java
Plug In. Listing 12.8 shows a page that uses 
jsp:plugin
 to load the applet.
Listing 12.9 shows the HTML that results from this page (I added some line
breaks for readability) and Figures 12 3 through 12 6 show some typical out 
put.
Listing 12.8 ShadowedTextApplet.jsp 
Using jsp:plugin
      HREF="JSP Styles.css"
      TYPE="text/css">
  
      Using jsp:plugin

            code="coreservlets.ShadowedTextApplet.class"
            width="475" height="350">
  
    
  
Second edition of this book: www.coreservlets.com; Sequel: www.moreservlets.com.
Servlet and JSP training courses by book's author: courses.coreservlets.com.






footer




 

 

 

 

 Home | About Us | Network | Services | Support | FAQ | Control Panel | Order Online | Sitemap | Contact

jsp web hosting

 

Our partners: PHP: Hypertext Preprocessor Best Web Hosting Java Web Hosting Jsp Web Hosting Cheapest Web Hosting

Visionwebhosting.net Business web hosting division of Web Design Plus. All rights reserved