BusinessCard - { setBackground (Color.yellow);...

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

View Full Document Right Arrow Icon
//******************************************************************** // BusinessCard.java Author: Lewis and Loftus // // Solution to Programming Project 2.22 //******************************************************************** / import javax.swing.JApplet; import java.awt.*; i public class BusinessCard extends JApplet { //----------------------------------------------------------------- // Draws a business card. //----------------------------------------------------------------- public void paint (Graphics page)
Background image of page 1
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: { setBackground (Color.yellow); page.setColor (Color.red); page.fillOval (10, 20, 60, 60); page.setColor (Color.cyan); page.fillRect (25, 35, 100, 25); page.setColor (Color.black); page.drawString ("John A. Lewis", 35, 50); page.drawString ("President", 85, 80); page.drawString ("Origin Software, Inc.", 85, 100); page.drawLine (225, 20, 225, 80); page.drawLine (195, 50, 255, 50); page.setColor (Color.blue); page.drawString ("where it all begins. ..", 115, 135); } }...
View Full Document

Ask a homework question - tutors are online