You must use : MouseMotionListener and mouseDragged method drawOval Color: Orange Frame Title: Makeup part2: A simple paint program Frame Size: (400,400) Frame Layout: null Makeup part2: A simple paint program
Added by Justin D.
Close
Step 1
swing.*; import java.awt.*; import java.awt.event.MouseEvent; import java.awt.event.MouseMotionListener; ``` Show more…
Show all steps
Your feedback will help us improve your experience
Ivan Kochetkov and 91 other AP CS educators are ready to help you.
Ask a new question
Labs
Want to see this concept in action?
Explore this concept interactively to see how it behaves as you change inputs.
Key Concepts
Recommended Videos
Akash M.
Write a program (Java language) that computes the area and the perimeter of a rectangle.
Sarvesh S.
(Turtle: draw a rectangle) Write a program that prompts the user to enter the center of a rectangle, width, and height, and displays the rectangle, as shown in Figure $2.4 \mathrm{c}$.
Recommended Textbooks
Computer Science and Information Technology
Introduction to Programming Using Python
Computer Science - An Overview
Watch the video solution with this free unlock.
EMAIL
PASSWORD