Java Reference
In-Depth Information
CHALLENGE 4.1
Complete the diagram in Figure 4.4 to show the code for
FlightPanel_1
refactored into three classes: a
FlightPath
class, a reduced
FlightPanel
class
that draws a flight path, and a
SwingFacade
class. Provide the facade with
the utility methods that appeared in the initial
FlightPanel_1
class. Also provide
the facade with a method to launch a frame.
Figure 4.4. This diagram shows the flight path application refactored into classes
that each have one job.