⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 jpasswordfield.html

📁 API資料大全
💻 HTML
📖 第 1 页 / 共 5 页
字号:
   preferred width will be whatever naturally results from   the component implementation.</DL></DD></DL><!-- ============ METHOD DETAIL ========== --><A NAME="method_detail"><!-- --></A><TABLE BORDER="1" CELLPADDING="3" CELLSPACING="0" WIDTH="100%"><TR BGCOLOR="#CCCCFF" CLASS="TableHeadingColor"><TD COLSPAN=1><FONT SIZE="+2"><B>Method Detail</B></FONT></TD></TR></TABLE><A NAME="getUIClassID()"><!-- --></A><H3>getUIClassID</H3><PRE>public <A HREF="../../java/lang/String.html">String</A> <B>getUIClassID</B>()</PRE><DL><DD>Returns the name of the L&F class that renders this component.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../javax/swing/JTextField.html#getUIClassID()">getUIClassID</A></CODE> in class <CODE><A HREF="../../javax/swing/JTextField.html">JTextField</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>"PasswordFieldUI"<DT><B>See Also: </B><DD><A HREF="../../javax/swing/JComponent.html#getUIClassID()"><CODE>JComponent.getUIClassID()</CODE></A>, <A HREF="../../javax/swing/UIDefaults.html#getUI(javax.swing.JComponent)"><CODE>UIDefaults.getUI(javax.swing.JComponent)</CODE></A></DL></DD></DL><HR><A NAME="getEchoChar()"><!-- --></A><H3>getEchoChar</H3><PRE>public char <B>getEchoChar</B>()</PRE><DL><DD>Returns the character to be used for echoing.  The default is '*'.<DD><DL><DT><B>Returns:</B><DD>the echo character, 0 if unset<DT><B>See Also: </B><DD><A HREF="../../javax/swing/JPasswordField.html#setEchoChar(char)"><CODE>setEchoChar(char)</CODE></A>, <A HREF="../../javax/swing/JPasswordField.html#echoCharIsSet()"><CODE>echoCharIsSet()</CODE></A></DL></DD></DL><HR><A NAME="setEchoChar(char)"><!-- --></A><H3>setEchoChar</H3><PRE>public void <B>setEchoChar</B>(char&nbsp;c)</PRE><DL><DD>Sets the echo character for this JPasswordField.  Note  that this is largely a suggestion to the view as the view that gets installed can use whatever graphic techniques it desires to represent the field.  Setting a value of 0 unsets the echo character.<DD><DL><DT><B>Parameters:</B><DD><CODE>c</CODE> - the echo character to display<DT><B>See Also: </B><DD><A HREF="../../javax/swing/JPasswordField.html#echoCharIsSet()"><CODE>echoCharIsSet()</CODE></A>, <A HREF="../../javax/swing/JPasswordField.html#getEchoChar()"><CODE>getEchoChar()</CODE></A></DL></DD></DL><HR><A NAME="echoCharIsSet()"><!-- --></A><H3>echoCharIsSet</H3><PRE>public boolean <B>echoCharIsSet</B>()</PRE><DL><DD>Returns true if this JPasswordField has a character set for echoing.  A character is considered to be set if the echo character is not 0.<DD><DL><DT><B>Returns:</B><DD>true if a character is set for echoing<DT><B>See Also: </B><DD><A HREF="../../javax/swing/JPasswordField.html#setEchoChar(char)"><CODE>setEchoChar(char)</CODE></A>, <A HREF="../../javax/swing/JPasswordField.html#getEchoChar()"><CODE>getEchoChar()</CODE></A></DL></DD></DL><HR><A NAME="cut()"><!-- --></A><H3>cut</H3><PRE>public void <B>cut</B>()</PRE><DL><DD>Normally transfers the currently selected range in the associated text model to the system clipboard, removing the contents from the model.  This is not a good thing for a password field and is reimplemented to simply beep.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../javax/swing/text/JTextComponent.html#cut()">cut</A></CODE> in class <CODE><A HREF="../../javax/swing/text/JTextComponent.html">JTextComponent</A></CODE></DL></DD></DL><HR><A NAME="copy()"><!-- --></A><H3>copy</H3><PRE>public void <B>copy</B>()</PRE><DL><DD>Normally transfers the currently selected range in the associated text model to the system clipboard, leaving the contents in the text model.  This is not a good thing for a password field and is reimplemented to simply beep.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../javax/swing/text/JTextComponent.html#copy()">copy</A></CODE> in class <CODE><A HREF="../../javax/swing/text/JTextComponent.html">JTextComponent</A></CODE></DL></DD></DL><HR><A NAME="getText()"><!-- --></A><H3>getText</H3><PRE>public <A HREF="../../java/lang/String.html">String</A> <B>getText</B>()</PRE><DL><DD><B>Deprecated.</B>&nbsp;<I>As of Java 2 platform v1.2, replaced by <code>getPassword()</code>.</I><P><DD>Returns the text contained in this TextComponent.  If the underlying document is null, will give a NullPointerException.   <p> For security reasons, this method is deprecated.  Use the getPassword method instead.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../javax/swing/text/JTextComponent.html#getText()">getText</A></CODE> in class <CODE><A HREF="../../javax/swing/text/JTextComponent.html">JTextComponent</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>the text</DL></DD></DL><HR><A NAME="getText(int, int)"><!-- --></A><H3>getText</H3><PRE>public <A HREF="../../java/lang/String.html">String</A> <B>getText</B>(int&nbsp;offs,                      int&nbsp;len)               throws <A HREF="../../javax/swing/text/BadLocationException.html">BadLocationException</A></PRE><DL><DD><B>Deprecated.</B>&nbsp;<I>As of Java 2 platform

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -