go to previous page   go to home page   go to next page

Answer:

In javax.swing.*


JTextField Class Hierarchy

It is part of the Swing package, so is defined in javax.swing. Here is how it fits into the class hierarchy. The lavender clouds are part of Swing.

Swing Hierarchy

JTextField derives from javax.swing.JTextComponent. It is a feature-rich component that supports nearly all the features of a text editor. The user can edit text as it is entered (using the backspace, delete, and arrow keys), and can work with the clipboard.


QUESTION 3:

To investigate the full set of features for JTextComponent where should you look?