ShadowName - Draws a name with a slightly offset shadow-public void paint(Graphics page setBackground(Color.yellow page.setColor(

Info iconThis preview shows page 1. Sign up to view the full content.

View Full Document Right Arrow Icon
//******************************************************************** // Author: Lewis and Loftus // // Solution to Programming Project 2.23 //******************************************************************** import javax.swing.JApplet; import java.awt.*; public class ShadowName extends JApplet { //-----------------------------------------------------------------
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: // Draws a name with a slightly offset shadow. //-----------------------------------------------------------------public void paint (Graphics page) { setBackground (Color.yellow); page.setColor (; page.drawString ("John A. Lewis", 50, 50); page.setColor (; page.drawString ("John A. Lewis", 49, 49); } }...
View Full Document

This note was uploaded on 05/17/2011 for the course COP 3530 taught by Professor Davis during the Spring '08 term at University of Florida.

Ask a homework question - tutors are online