Recall that many Swing classes start with
Similar AWT classes do not start with
A frequent error is to forget the
J and get the wrong class.
For example, there is an AWT class
Here, as a review, is how the class
fits into the Swing hierarchy: