JTextField Class Hierarchy

Classic programmed-learning exercises, refreshed for modern Java and presented in the current MrStyner.com portfolio style.

Modern Java noteThis archive has been refreshed for Java 25 LTS. Core language concepts remain useful, while outdated setup instructions and browser-era Java are labeled or replaced. Java 26 is the current feature release; Java 25 is used here as the stable teaching baseline.
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), drag and drop text, and work with the clipboard.

QUESTION 3:

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