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
Which of the following modes of replication requires a very low latency network connection and ensures data remains in synch wit
Snowcat [4.5K]

Answer:

b. Synchronous replication

Explanation:

Replication of data in storage partitions or in a number redundant array of independent disk drives helps to promote redundancy, as implied, and faulty tolerance to reduce loss of data.

There are two categories of replication and they are synchronous and asynchronous replication.

Synchronous replication requires low latency network site to mirror data, while asynchronous replication mirrors data in large metropolitan area in high latency networks.

4 0
3 years ago
Melissa is writing a class called Cell. Which method has she set up to return a double?
Alina [70]

Answer:

C. public double get_mCount()

5 0
3 years ago
Can anyone help me<br> I will make you a brainalist
Ulleksa [173]

Answer:

Explanation:

Exercise A:

1. A table.

2. Categorical.

3. Access.

4.Queries.

5.ACCDB extension.

Exercise B:

1. Insert Tab.

2. DoCmd.Quit method.

3.Navigation Pane.

4. Modify table data.

5.The top pane and the bottom pane.

Hope this helped you!

4 0
3 years ago
A computer network is a collection of _____.
Talja [164]
Wifi..............????
6 0
3 years ago
Read 2 more answers
Please help...........​
MrMuchimi

Answer:

Explanation:

As a user of GPL v3 software, you have lots of freedom: You can use GPL software for commercial purposes. You can modify the software and create derivative work. You can distribute the software and any derivative work you produce, without having to ask for permission or pay

4 0
3 years ago
Read 2 more answers
Other questions:
  • Can someone tell me how to get all A's with no effort?
    5·1 answer
  • how to write a function "void funct()" which will accept a string from the user as input and will then display the string backwa
    11·1 answer
  • What is an apprenticeship
    7·1 answer
  • True or False? Most operating systems allow the user to specify a set of paths that are searched in a specific order to help res
    5·1 answer
  • The movement of the economy through highs and lows is referred to as:
    11·1 answer
  • Wedding photographers must be skilled at producing photographs that capture the
    8·1 answer
  • Importance of type casting in programming ​
    5·1 answer
  • What code would you use to create the login button?
    11·1 answer
  • How it/computing has impacted on engineering? <br><br> I need seven answers please help !
    11·1 answer
  • If you have two folders open on your desktop and you want to move a file from one folder to the other, simply ________ the file
    8·1 answer
Add answer
Login
Not registered? Fast signup
Signup
Login Signup
Ask question!