📄 jpasswordfield.html
字号:
<TD><CODE><B><A HREF="../../javax/swing/JPasswordField.html#JPasswordField(int)">JPasswordField</A></B>(int columns)</CODE><BR> Constructs a new empty JPasswordField with the specified number of columns.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../javax/swing/JPasswordField.html#JPasswordField(java.lang.String)">JPasswordField</A></B>(<A HREF="../../java/lang/String.html">String</A> text)</CODE><BR> Constructs a new JPasswordField initialized with the specified text.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD><CODE><B><A HREF="../../javax/swing/JPasswordField.html#JPasswordField(java.lang.String, int)">JPasswordField</A></B>(<A HREF="../../java/lang/String.html">String</A> text, int columns)</CODE><BR> Constructs a new JPasswordField initialized with the specified text and columns.</TD></TR></TABLE> <!-- ========== METHOD SUMMARY =========== --><A NAME="method_summary"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=2><FONT SIZE="+2"><B>Method Summary</B></FONT></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/JPasswordField.html#copy()">copy</A></B>()</CODE><BR> Normally transfers the currently selected range in the associated text model to the system clipboard, leaving the contents in the text model.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/JPasswordField.html#cut()">cut</A></B>()</CODE><BR> Normally transfers the currently selected range in the associated text model to the system clipboard, removing the contents from the model.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> boolean</CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/JPasswordField.html#echoCharIsSet()">echoCharIsSet</A></B>()</CODE><BR> Returns true if this JPasswordField has a character set for echoing.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../javax/accessibility/AccessibleContext.html">AccessibleContext</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/JPasswordField.html#getAccessibleContext()">getAccessibleContext</A></B>()</CODE><BR> Gets the AccessibleContext associated with this JPasswordField.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> char</CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/JPasswordField.html#getEchoChar()">getEchoChar</A></B>()</CODE><BR> Returns the character to be used for echoing.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> char[]</CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/JPasswordField.html#getPassword()">getPassword</A></B>()</CODE><BR> Returns the text contained in this TextComponent.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../java/lang/String.html">String</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/JPasswordField.html#getText()">getText</A></B>()</CODE><BR> <B>Deprecated.</B> <I>As of Java 2 platform v1.2, replaced by <code>getPassword()</code>.</I></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../java/lang/String.html">String</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/JPasswordField.html#getText(int, int)">getText</A></B>(int offs, int len)</CODE><BR> <B>Deprecated.</B> <I>As of Java 2 platform v1.2, replaced by <code>getPassword()</code>.</I></TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../java/lang/String.html">String</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/JPasswordField.html#getUIClassID()">getUIClassID</A></B>()</CODE><BR> Returns the name of the L&F class that renders this component.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected <A HREF="../../java/lang/String.html">String</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/JPasswordField.html#paramString()">paramString</A></B>()</CODE><BR> Returns a string representation of this JPasswordField.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/JPasswordField.html#setEchoChar(char)">setEchoChar</A></B>(char c)</CODE><BR> Sets the echo character for this JPasswordField.</TD></TR></TABLE> <A NAME="methods_inherited_from_class_javax.swing.JTextField"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%">
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -