Combining the functionality of multiple text controls in a graphical user interface
First Claim
1. A system of software components adapted to display an object created by an application program running under an operating system, wherein selection of either a first or a second of the system of software components as the source for the graphical representation of the object can be made during runtime, and wherein the appearance of the displayed object is substantially independent of the operating system.
4 Assignments
0 Petitions
Accused Products
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.
84 Citations
25 Claims
- 1. A system of software components adapted to display an object created by an application program running under an operating system, wherein selection of either a first or a second of the system of software components as the source for the graphical representation of the object can be made during runtime, and wherein the appearance of the displayed object is substantially independent of the operating system.
-
13. A method for displaying an object created by an application program running under an operating system, using at least one of a system of software components invoked during runtime and adapted to generate a graphical representation of the object that is substantially independent of the operating system, the method comprising:
-
activating a first software component to generate a first graphical representation of the object;
monitoring the mode of use of the object; and
upon detecting a change in the mode of use of the object, deactivating the first component and activating a second component to generate a second graphical representation of the object, distinct from the first.
-
-
25. A computer-readable storage device, comprising:
-
a windows-based operating system;
an application program running under the operating system;
an object created at runtime by the application program and adapted for multiple modes of use by the application program, wherein the application program is adapted for activating a first software component to generate a first graphical representation of the object;
monitoring the mode of use of the object; and
upon detecting a change in the mode of use of the object, deactivating the first component and activating a second component to generate a second graphical representation of the object, distinct from the first.
-
Specification