Question: In Java, the driver is in the first two pictures Written by JJ Shepherd import java applet. //Needed to create the window import java awt.

In Java, the driver is in the first two pictures
 In Java, the driver is in the first two pictures Written
by JJ Shepherd import java applet. //Needed to create the window import
java awt. //Needed for drawing import java util public class Drawinguines extends
Applet(//when it extends applet it creates a window and calls certain methods
private Image display; //Used as the flat image private Graphics drawingArea; //Used

Written by JJ Shepherd import java applet. //Needed to create the window import java awt. //Needed for drawing import java util public class Drawinguines extends Applet(//when it extends applet it creates a window and calls certain methods private Image display; //Used as the flat image private Graphics drawingArea; //Used to draw item in the inage .This is called by the parent Applet, as its an overridden method, and it initializes all of the instance variables. Think of this as a variation of a constructor, but called by another, hidden piece of code public void init() //get the height and width from the Applet int height getsize().height; int width getsize() width //creates an image using the height and width in the applet display create Image (width, height); //sets up the drawing area for the image above to be drawn on drawing Area display get Graphics() This draws the lines drawl ines (drawingArea) This is also called by the applet as it is an overridden method. public void paint (Graphics g) g.drawImage (display,0,0,null); This Draws line

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!