{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

DrawName - Draws a name-public void paint(Graphics page...

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

View Full Document Right Arrow Icon
//******************************************************************** // DrawName.java Author: Lewis and Loftus // // Solution to Programming Project 2.16 //******************************************************************** import javax.swing.JApplet; import java.awt.*; public class DrawName 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. //-----------------------------------------------------------------public void paint (Graphics page) { setBackground (Color.cyan); page.setColor (Color.black); page.drawString ("John A. Lewis", 50, 50); } }...
View Full Document

{[ snackBarMessage ]}

Ask a homework question - tutors are online