74 Inside the rectangle? 76 Inside the rectangle? Muuse puinter is nul in the reclanyle Mouse pointer is in the rectangle

Systems Architecture
7th Edition
ISBN:9781305080195
Author:Stephen D. Burd
Publisher:Stephen D. Burd
Chapter3: Data Representation
Section: Chapter Questions
Problem 12VE
icon
Related questions
Question

Write a program that draws a fixed rectangle centered at (100, 60) with width 100 and height 40. Whenever the mouse is moved, display the message indicating whether the mouse pointer is inside the rectangle, as shown in Figure 9.32. To detect whether the pointer is inside a rectangle, use the
Rectangle2D class defined in Exercise 8.19.

74 Inside the rectangle?
76 Inside the rectangle?
Muuse puinter is nul in the reclanyle
Mouse pointer is in the rectangle
Transcribed Image Text:74 Inside the rectangle? 76 Inside the rectangle? Muuse puinter is nul in the reclanyle Mouse pointer is in the rectangle
Expert Solution
steps

Step by step

Solved in 2 steps with 1 images

Blurred answer
Knowledge Booster
Random Class and its operations
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Systems Architecture
Systems Architecture
Computer Science
ISBN:
9781305080195
Author:
Stephen D. Burd
Publisher:
Cengage Learning