22 * or visit www.oracle.com if you need additional information or have any
23 * questions.
24 */
25 package javax.swing;
26
27 import javax.swing.text.*;
28 import javax.swing.plaf.*;
29 import javax.accessibility.*;
30
31 import java.io.ObjectOutputStream;
32 import java.io.ObjectInputStream;
33 import java.io.IOException;
34 import java.io.*;
35 import java.util.Arrays;
36
37 /**
38 * <code>JPasswordField</code> is a lightweight component that allows
39 * the editing of a single line of text where the view indicates
40 * something was typed, but does not show the original characters.
41 * You can find further information and examples in
42 * <a href="http://java.sun.com/docs/books/tutorial/uiswing/components/textfield.html">How to Use Text Fields</a>,
43 * a section in <em>The Java Tutorial.</em>
44 * <p>
45 * <code>JPasswordField</code> is intended
46 * to be source-compatible with <code>java.awt.TextField</code>
47 * used with <code>echoChar</code> set. It is provided separately
48 * to make it easier to safely change the UI for the
49 * <code>JTextField</code> without affecting password entries.
50 * <p>
51 * <strong>NOTE:</strong>
52 * By default, JPasswordField disables input methods; otherwise, input
53 * characters could be visible while they were composed using input methods.
54 * If an application needs the input methods support, please use the
55 * inherited method, <code>enableInputMethods(true)</code>.
56 * <p>
57 * <strong>Warning:</strong> Swing is not thread safe. For more
58 * information see <a
59 * href="package-summary.html#threading">Swing's Threading
60 * Policy</a>.
61 * <p>
62 * <strong>Warning:</strong>
|
22 * or visit www.oracle.com if you need additional information or have any
23 * questions.
24 */
25 package javax.swing;
26
27 import javax.swing.text.*;
28 import javax.swing.plaf.*;
29 import javax.accessibility.*;
30
31 import java.io.ObjectOutputStream;
32 import java.io.ObjectInputStream;
33 import java.io.IOException;
34 import java.io.*;
35 import java.util.Arrays;
36
37 /**
38 * <code>JPasswordField</code> is a lightweight component that allows
39 * the editing of a single line of text where the view indicates
40 * something was typed, but does not show the original characters.
41 * You can find further information and examples in
42 * <a href="http://docs.oracle.com/javase/tutorial/uiswing/components/textfield.html">How to Use Text Fields</a>,
43 * a section in <em>The Java Tutorial.</em>
44 * <p>
45 * <code>JPasswordField</code> is intended
46 * to be source-compatible with <code>java.awt.TextField</code>
47 * used with <code>echoChar</code> set. It is provided separately
48 * to make it easier to safely change the UI for the
49 * <code>JTextField</code> without affecting password entries.
50 * <p>
51 * <strong>NOTE:</strong>
52 * By default, JPasswordField disables input methods; otherwise, input
53 * characters could be visible while they were composed using input methods.
54 * If an application needs the input methods support, please use the
55 * inherited method, <code>enableInputMethods(true)</code>.
56 * <p>
57 * <strong>Warning:</strong> Swing is not thread safe. For more
58 * information see <a
59 * href="package-summary.html#threading">Swing's Threading
60 * Policy</a>.
61 * <p>
62 * <strong>Warning:</strong>
|