To Lecture Notes
InnerClass Example
Goal
- Show how an inner class works and how to use an inner class to implement a Swing ActionListener class.
Ordinary Classes
Inner Class
Private ActionListener Class
- The Swing MyFrame class contains a private class that inherits from
ActionListener.