System, computer-readable storage device, and method for combining the functionality of multiple text controls in a graphical user interface
First Claim
1. A system of software components stored on a computer-readable medium adapted to display an object created by an application program running under an operating system by reproducing the behavior of legacy AWT-based controls by switching between swing controls, wherein the system of software components comprises:
- a first swing proxy component;
a second swing proxy component;
a peer component for selecting either the first proxy component or the second proxy component, depending on a mode of use of the object, where selection is based upon which swing component is capable of supporting the mode of use, wherein the selection can be made during runtime, and wherein after the proxy component is selected, the selected proxy component dynamically creates a new graphics resource component for displaying the object, such that 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.
-
Citations
25 Claims
-
1. A system of software components stored on a computer-readable medium adapted to display an object created by an application program running under an operating system by reproducing the behavior of legacy AWT-based controls by switching between swing controls, wherein the system of software components comprises:
-
a first swing proxy component; a second swing proxy component; a peer component for selecting either the first proxy component or the second proxy component, depending on a mode of use of the object, where selection is based upon which swing component is capable of supporting the mode of use, wherein the selection can be made during runtime, and wherein after the proxy component is selected, the selected proxy component dynamically creates a new graphics resource component for displaying the object, such that the appearance of the displayed object is substantially independent of the operating system. - View Dependent Claims (2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12)
-
-
13. A method for displaying an object created by an application program running under an operating system, by reproducing the behavior of legacy AWT-based controls by switching between swing controls, using at least one of a system of software components stored on a computer-readable medium, which can be invoked during runtime to generate a graphical representation of the object that is substantially independent of the operating system, the method performed by the application program and comprising:
-
activating a first swing proxy component of the system of software components to dynamically generate a first graphical representation of the object during runtime; monitoring the mode of use of the object; and upon detecting a change in the mode of use of the object, if it is detected that the activated proxy is not capable of supporting the new mode of use, deactivating the first swing proxy component and activating a second swing proxy component of the system of software components to dynamically generate a second graphical representation of the object during runtime, wherein the second graphical representation is distinct from the first. - View Dependent Claims (14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24)
-
-
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; reproducing the behavior of legacy AWT-based controls by switching between swing controls; activating a first swing proxy component of the system of software component to dynamically generate a first graphical representation of the object during runtime; monitoring the mode of use of the object, and upon detecting a change in the mode of use of the object, if it is detected that the activated proxy is not capable of supporting the new mode of use, deactivating the first swing proxy component and activating the second swing proxy component to dynamically generate a second graphical representation of the object during runtime, wherein the second graphical representation is substantially independent of the operating system and distinct from the first graphical representation.
-
Specification