Patent Number: 7,571,389

Title: System, computer-readable storage device, and method for combining the functionality of multiple text controls in a graphical user interface

Abstract: A system and method are disclosed whereby two components within the Swing application program interface (API), JTextField and JPasswordField, are used to emulate the behavior of the TextField component in the abstract windowing toolkit (AWT). This allows legacy Java applications, based on the AWT, to be migrated to the platform-independent Swing API, without modification. In the AWT, a single TextField component could be used for ordinary text entry, as well as for password protected text entry. In the latter case, a prescribed echo character would be displayed as text was entered, to avoid displaying privileged information. According to the system and method disclosed herein, a JPasswordField component may be substituted for a JTextField component, or vice-versa, depending on whether an echo character has been specified. This substitution is performed at runtime, using an enhanced version of the Swing API, as disclosed herein. The enhanced version of Swing is referred to herein as AWTSwing.

Inventors: Broussard; Scott J. (Cedar Park, TX)

Assignee: International Business Machines Corporation

International Classification: G06F 3/00 (20060101)

Expiration Date: 2021-08-04 0:00:00