Prentice Hall and Sun Microsystems. Personal use only; do not redistribute.
7.5 Using Servlets to Generate GIF Images
177
Listing 7.11  ShadowedTextFrame.java (continued)
  public void paintComponent(Graphics g) {
    super.paintComponent(g);
    g.drawImage(messageImage, 0, 0, this);
  }
}
Listing 7.12  ExitListener.java 
package coreservlets;
import java.awt.*;
import java.awt.event.*;
/** A listener that you attach to the top level Frame or JFrame
 *  of your application, so quitting the frame exits the app.
 */
public class ExitListener extends WindowAdapter {
  public void windowClosing(WindowEvent event) {
    System.exit(0);
  }
}
Figure 7 9
ShadowedTextFrame application when invoked with  java 
coreservlets.ShadowedTextFrame "Tom's Tools" Haettenschweiler 
100 .
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