Use the graphics class to draw a line between the points

Assignment Help Basic Computer Science
Reference no: EM13306545

How would you use the Graphics class to draw a line between the points 50,75 and 25,100? Give the Java statement needed.

Given a graphics object g, write a few lines of code to draw a blue rectangle (filled in) with its upper left corner at position 35, 35 with a width of 200 and a height of 150.

Given a graphics object g, write a few lines of code to have that graphics object draw a magenta circle (not filled in) that has a diameter of 200 pixels. What does invoking the base class paintComponent method accomplish?

Reference no: EM13306545

Questions Cloud

What is the maximum positive emf : The ems of an AC circuit has an rms value of 120V. What is the maximum positive emf
The meeting and implemented immediately : State the issues, as you know them, and request that the team members come with ideas so this problem can be resolved at the meeting and implemented immediately.
What is the paintcomponent method : Describe the types of information available to a program when using the KeyListener interface.
Determine the rate of heat loss due to radiation : A cryogenic storage container holds liquid helium, which boils at 4.2 K. Suppose a student painted the outer shell of the container black, Determine the rate of heat loss due to radiation
Use the graphics class to draw a line between the points : Given a graphics object g, write a few lines of code to have that graphics object draw a magenta circle (not filled in) that has a diameter of 200 pixels. What does invoking the base class paintComponent method accomplish?
How much energy is released when it discharges : A certain defibrillator sends 0.12 C of charge through the heart. How much energy is released when it discharges
Describe the necessary hardware and software components : Your company wants to create an application that allows employees to dial in from a remote location and, using a single connection, access their voice mail, e-mail, and data files.
What leadership considerations must an organization weigh : What leadership considerations must an organization weigh in selecting another country to open a location such as a manufacturing plant?
Describe the graphical coordinate system in java : Describe the graphical coordinate system in Java. Where is the origin? What units apply to the x,y coordinates.

Reviews

Write a Review

Basic Computer Science Questions & Answers

  Examples of emerging technologies

Assume you are an Information Systems educator, and you have been asked to make an article about emerging technologies and how important it is to be prepared to adapt to new technologies

  Describe why analyst needs to understand how people think

Describe why an analyst requires to understand how people think, how they learn, how they react to change, how they communicate, and how they work.

  Whats the difference between public, private and protected

What's the difference between public, private and protected?

  Write a module to determine mean of the grades

Write a module to print the student's id, name, and grade for student with highest grade and with lowest grade, respectively.

  Devise an algorithm for multiplying two large numbers

Suppose you have available a pocket calculator that can multiply a four-figure number by a four-figure number and get the correct eight-figure answer

  Design and implement a graphical user interface (gui)

Design and implement a graphical user interface (GUI) that lets a user draw geometric objects such as rectangles, circles or line segments. The geometric objects are two be "entered" with clicks of the mouse

  When the jmpc field in the microinstruction is enabled

Assume that when the JMPC field in the microinstruction is enabled (set), MBR is ORed with NEXT_ADDRESS to determine the address of the next microinstruction to be executed

  Elliot bay maintains a roster of personal trainers

Elliot Bay maintains a roster of personal trainers who operate as independent consultants. Approved trainers can schedule appointments with clients at Elliot Bay facilities, as long as their client is a member of the club. Trainers also teach yoga..

  Explaining threat category

An individual threat can be represented in more than one threat category. If a hacker hacks into a network, copies a few files.

  Explain bec corporate is department

If you were the system analyst in BEC corporate IS department and you had recieved call from Carrie douglas about her Project idea,what would you suggest to Carrie?

  Demand-paged environment

Which of the following programming techniques and data structures (in a user-level program) are good for a demand-paged environment, and which are bad? Explain your answer.

  How implement memory allocation with strings

how implement memory allocation with strings.

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd