Question: ***Must modify code given, question after modified code. import java.awt.*; import javax.swing.*; public class ColorApplet extends JApplet { public void init() { Container c =

***Must modify code given, question after modified code.

import java.awt.*; import javax.swing.*;

public class ColorApplet extends JApplet { public void init() { Container c = getContentPane(); c.setBackground(Color.CYAN);

} public void paint(Graphics g) { super.paint(g); g.setColor(Color.red); g.drawString("This is a test string", 30,50); g.setColor(Color.blue); g.setFont(new Font("Courier", Font.BOLD, 24)); g.drawString("This is a another test string", 30,100); g.fill3DRect(30,150,200,200,true);

} }

Modify the starter code to draw a picture of something using at least 5 different methods from the Graphics ADT

Change the colors currently being used in this program

Change the font currently being used in this program

Change the string values being drawn so they become a title and a caption for your picture

You will submit:

A list of all the methods you used in your program along with the specific ADT they belong to (are part of)

Your source code and a screen print of your picture

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!