Question: Listing 28.10, ConnectedCircles.java, allows the user to create circles and determine whether they are connected. Rewrite the program for rectangles. The program lets the user
Listing 28.10, ConnectedCircles.java, allows the user to create circles and determine whether they are connected. Rewrite the program for rectangles. The program lets the user create a rectangle by clicking a mouse in a blank area that is not currently covered by a rectangle. As the rectangles are added, the rectangles are repainted as filled if they are connected or are unfilled otherwise, as shown in Figure 28.25b–c.

Data from Listing 28.10,


OO Exercise28 23 e 0 0 Exercise28 23 (b) (c)
Step by Step Solution
3.43 Rating (169 Votes )
There are 3 Steps involved in it
import javautilArrayList import javautilList import javafxapplicationApplication import javafxsceneScene import javafxscenelayoutPane import javafxsce... View full answer
Get step-by-step solutions from verified subject matter experts
