Chapter 9: Visual Programming Basics Object-Oriented Program Development Using Java: A Class-Centered Approach Objectives Event-Based Programming Creating a Swing-Based Window…