CHAPTER 7

image

Other Input Components

This chapter presents other input components available in the Swing class hierarchy. Specifically, it deals with some specialized text input fields, such as JPassword, three types of ComboBoxes (static, editable, and dynamic), and formatted text fields. Additionally, I combine some of these while discussing the JSpinner class at the end of the chapter.

Password Fields

One common reason for having a fairly small input field is to allow the users to enter a password. The good news is that the Swing class hierarchy includes an input component specifically for this purpose. Having recently seen the JTextField component, ...

Get Swing for Jython: Graphical Jython UI and Scripts Development using Java Swing and WebSphere Application Server now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.