1answer.
Ask question
Login Signup
Ask question
All categories
  • English
  • Mathematics
  • Social Studies
  • Business
  • History
  • Health
  • Geography
  • Biology
  • Physics
  • Chemistry
  • Computers and Technology
  • Arts
  • World Languages
  • Spanish
  • French
  • German
  • Advanced Placement (AP)
  • SAT
  • Medicine
  • Law
  • Engineering
maw [93]
3 years ago
15

Complete the following code to display an applet, so that the contents are contained in a rectangle around the phrase "Exercise

Applet". Use starting coordinates 5, 15 for the string. public void paint(Graphics g) { //Draw a Rectangle around the applet's display area. //Draw the current string inside the rectangle. }
Computers and Technology
1 answer:
sertanlavr [38]3 years ago
7 0

Answer:

//. Program is written in Java Programming Language

// Comments are used for explanatory purpose

// Program starts here

// import required libraries

import java.swing.JApplet;

import java.awt.*;

// Declare class as

public class DrawGraphics extends JApplet

{

//.Assume the following values for width, height and area of the shape

final int area= 150 ;

final int width = 100, height = 50;

{

//Draw a Rectangle around the applet's display area starting from 5,15

g.drawRect( 5,15, area-1, area-1 );

//Draw the current string inside the rectangle

g.drawRect( area/2 - width/2 , area/2 - height/2, width, height );

}

}

You might be interested in
How do i know my child's login info for parent infinite campus
Oliga [24]

Answer:

Logging in from a Web Browser

Visit infinitecampus.com and click Login at the top right.

Search for your District Name and State. Select your district from the list.

Click Parent/Student.

Click either Campus Parent or Campus Student.

Enter the Username and Password provided by your school. ...

Click Log In!

Explanation:

5 0
3 years ago
Which call of the function correctly follows the instructions laid out in the api?.
Juliette [100K]

Answer:

MoveElement("button1", "down", 25); This function finds the minimum number in a list.

Explanation:

Hope this helps

3 0
3 years ago
More than 700 people in the United States have been infected with monkeypox virus American vector: the epidemic is spreading lik
erik [133]

An epidemic that is spreading like a snowball is one that is that is moving in a gradual or seasonal rate.

<h3>What is snowball spread of virus?</h3>

An epidemic is said to be spreading like a snowball if  it is said to be moving at a rate.

Note that in the case of monkey virus, the epidemic that is spreading like a snowball is one that is that is moving in a gradual or seasonal rate.

Learn more about epidemic  from

brainly.com/question/15452937

#SPJ1

5 0
2 years ago
Tim and Eric recently started a company focused on rehabbing old houses. Before they buy a house, they use software to create an
sp2606 [1]

Answer: True

Since both partners make informed decisions about the houses before actually implementing them with information from the software

Explanation:

CAD computer aided design is the use of computers to aid in the creation, modification, analysis, or optimization of a design. CAD software is used to increase the productivity of the designer, improve the quality of design, improve communications through documentation, and to create a database for manufacturing or decision making

5 0
4 years ago
Read 2 more answers
Is B$4 is an example of a relative cell reference?
yawa3891 [41]
Yes it is because B$4<span> instructs Excel to keep the </span>cell reference<span> B4 (absolute). assumptions </span>
5 0
3 years ago
Other questions:
  • What are three distractions that can prevent a driver from focusing on driving? Explain how a driver can prevent these distracti
    15·1 answer
  • Torque is defined as _____.
    7·1 answer
  • What are some examples for Environmental Technology?
    5·2 answers
  • What does hdr stand for?
    6·2 answers
  • It is important to create an IT security program structure that aligns with program and organizational goals and describes the o
    6·1 answer
  • What does it mean to design,<br> implement, and maintain computer<br> systems?
    15·1 answer
  • PLEASE HELPP!!!!!
    14·1 answer
  • What is the clearing house for domain names called?
    12·1 answer
  • Straight dinosaur walks out of woods : RAWWRRRR
    8·2 answers
  • Enlist few database you use often.
    12·2 answers
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!