textarea.html

来自「API資料大全」· HTML 代码 · 共 1,032 行 · 第 1/5 页

HTML
1,032
字号
<DT><B>Returns:</B><DD>an integer that indicates which scroll bars are used.<DT><B>Since: </B><DD>JDK1.1</DD><DT><B>See Also: </B><DD><A HREF="../../java/awt/TextArea.html#SCROLLBARS_BOTH"><CODE>SCROLLBARS_BOTH</CODE></A>, <A HREF="../../java/awt/TextArea.html#SCROLLBARS_VERTICAL_ONLY"><CODE>SCROLLBARS_VERTICAL_ONLY</CODE></A>, <A HREF="../../java/awt/TextArea.html#SCROLLBARS_HORIZONTAL_ONLY"><CODE>SCROLLBARS_HORIZONTAL_ONLY</CODE></A>, <A HREF="../../java/awt/TextArea.html#SCROLLBARS_NONE"><CODE>SCROLLBARS_NONE</CODE></A>, <A HREF="../../java/awt/TextArea.html#TextArea(java.lang.String, int, int, int)"><CODE>TextArea(java.lang.String, int, int, int)</CODE></A></DL></DD></DL><HR><A NAME="getPreferredSize(int, int)"><!-- --></A><H3>getPreferredSize</H3><PRE>public <A HREF="../../java/awt/Dimension.html">Dimension</A> <B>getPreferredSize</B>(int&nbsp;rows,                                  int&nbsp;columns)</PRE><DL><DD>Determines the preferred size of a text area with the specified number of rows and columns.<DD><DL><DT><B>Parameters:</B><DD><CODE>rows</CODE> - the number of rows.<DD><CODE>cols</CODE> - the number of columns.<DT><B>Returns:</B><DD>the preferred dimensions required to display                       the text area with the specified                       number of rows and columns.<DT><B>Since: </B><DD>JDK1.1</DD><DT><B>See Also: </B><DD><A HREF="../../java/awt/Component.html#getPreferredSize()"><CODE>Component.getPreferredSize()</CODE></A></DL></DD></DL><HR><A NAME="preferredSize(int, int)"><!-- --></A><H3>preferredSize</H3><PRE>public <A HREF="../../java/awt/Dimension.html">Dimension</A> <B>preferredSize</B>(int&nbsp;rows,                               int&nbsp;columns)</PRE><DL><DD><B>Deprecated.</B>&nbsp;<I>As of JDK version 1.1, replaced by <code>getPreferredSize(int, int)</code>.</I><P></DL><HR><A NAME="getPreferredSize()"><!-- --></A><H3>getPreferredSize</H3><PRE>public <A HREF="../../java/awt/Dimension.html">Dimension</A> <B>getPreferredSize</B>()</PRE><DL><DD>Determines the preferred size of this text area.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../java/awt/Component.html#getPreferredSize()">getPreferredSize</A></CODE> in class <CODE><A HREF="../../java/awt/Component.html">Component</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>the preferred dimensions needed for this text area.<DT><B>Since: </B><DD>JDK1.1</DD><DT><B>See Also: </B><DD><A HREF="../../java/awt/Component.html#getPreferredSize()"><CODE>Component.getPreferredSize()</CODE></A></DL></DD></DL><HR><A NAME="preferredSize()"><!-- --></A><H3>preferredSize</H3><PRE>public <A HREF="../../java/awt/Dimension.html">Dimension</A> <B>preferredSize</B>()</PRE><DL><DD><B>Deprecated.</B>&nbsp;<I>As of JDK version 1.1, replaced by <code>getPreferredSize()</code>.</I><P><DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../java/awt/Component.html#preferredSize()">preferredSize</A></CODE> in class <CODE><A HREF="../../java/awt/Component.html">Component</A></CODE></DL></DD></DL><HR><A NAME="getMinimumSize(int, int)"><!-- --></A><H3>getMinimumSize</H3><PRE>public <A HREF="../../java/awt/Dimension.html">Dimension</A> <B>getMinimumSize</B>(int&nbsp;rows,                                int&nbsp;columns)</PRE><DL><DD>Determines the minimum size of a text area with the specified number of rows and columns.<DD><DL><DT><B>Parameters:</B><DD><CODE>rows</CODE> - the number of rows.<DD><CODE>cols</CODE> - the number of columns.<DT><B>Returns:</B><DD>the minimum dimensions required to display                       the text area with the specified                       number of rows and columns.<DT><B>Since: </B><DD>JDK1.1</DD><DT><B>See Also: </B><DD><A HREF="../../java/awt/Component.html#getMinimumSize()"><CODE>Component.getMinimumSize()</CODE></A></DL></DD></DL><HR><A NAME="minimumSize(int, int)"><!-- --></A><H3>minimumSize</H3><PRE>public <A HREF="../../java/awt/Dimension.html">Dimension</A> <B>minimumSize</B>(int&nbsp;rows,                             int&nbsp;columns)</PRE><DL><DD><B>Deprecated.</B>&nbsp;<I>As of JDK version 1.1, replaced by <code>getMinimumSize(int, int)</code>.</I><P></DL><HR><A NAME="getMinimumSize()"><!-- --></A><H3>getMinimumSize</H3><PRE>public <A HREF="../../java/awt/Dimension.html">Dimension</A> <B>getMinimumSize</B>()</PRE><DL><DD>Determines the minimum size of this text area.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../java/awt/Component.html#getMinimumSize()">getMinimumSize</A></CODE> in class <CODE><A HREF="../../java/awt/Component.html">Component</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>the preferred dimensions needed for this text area.<DT><B>Since: </B><DD>JDK1.1</DD><DT><B>See Also: </B><DD><A HREF="../../java/awt/Component.html#getPreferredSize()"><CODE>Component.getPreferredSize()</CODE></A></DL></DD></DL><HR><A NAME="minimumSize()"><!-- --></A><H3>minimumSize</H3><PRE>public <A HREF="../../java/awt/Dimension.html">Dimension</A> <B>minimumSize</B>()</PRE><DL><DD><B>Deprecated.</B>&nbsp;<I>As of JDK version 1.1, replaced by <code>getMinimumSize()</code>.</I><P><DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../java/awt/Component.html#minimumSize()">minimumSize</A></CODE> in class <CODE><A HREF="../../java/awt/Component.html">Component</A></CODE></DL></DD></DL><HR><A NAME="paramString()"><!-- --></A><H3>paramString</H3><PRE>protected <A HREF="../../java/lang/String.html">String</A> <B>paramString</B>()</PRE><DL><DD>Returns the parameter string representing the state of this text area. This string is useful for debugging.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../java/awt/TextComponent.html#paramString()">paramString</A></CODE> in class <CODE><A HREF="../../java/awt/TextComponent.html">TextComponent</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>the parameter string of this text area.</DL></DD></DL><HR><A NAME="getAccessibleContext()"><!-- --></A><H3>getAccessibleContext</H3><PRE>public <A HREF="../../javax/accessibility/AccessibleContext.html">AccessibleContext</A> <B>getAccessibleContext</B>()</PRE><DL><DD>Gets the AccessibleContext associated with this TextArea.  For text areas, the AccessibleContext takes the form of an  AccessibleAWTTextArea.  A new AccessibleAWTTextArea instance is created if necessary.<DD><DL><DT><B>Overrides:</B><DD><CODE><A HREF="../../java/awt/TextComponent.html#getAccessibleContext()">getAccessibleContext</A></CODE> in class <CODE><A HREF="../../java/awt/TextComponent.html">TextComponent</A></CODE></DL></DD><DD><DL><DT><B>Returns:</B><DD>an AccessibleAWTTextArea that serves as the          AccessibleContext of this TextArea</DL></DD></DL><!-- ========= END OF CLASS DATA ========= --><HR><!-- ========== START OF NAVBAR ========== --><A NAME="navbar_bottom"><!-- --></A><TABLE BORDER="0" WIDTH="100%" CELLPADDING="1" CELLSPACING="0"><TR><TD COLSPAN=2 BGCOLOR="#EEEEFF" CLASS="NavBarCell1"><A NAME="navbar_bottom_firstrow"><!-- --></A><TABLE BORDER="0" CELLPADDING="0" CELLSPACING="3">  <TR ALIGN="center" VALIGN="top">  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../overview-summary.html"><FONT CLASS="NavBarFont1"><B>Overview</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-summary.html"><FONT CLASS="NavBarFont1"><B>Package</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#FFFFFF" CLASS="NavBarCell1Rev"> &nbsp;<FONT CLASS="NavBarFont1Rev"><B>Class</B></FONT>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="class-use/TextArea.html"><FONT CLASS="NavBarFont1"><B>Use</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="package-tree.html"><FONT CLASS="NavBarFont1"><B>Tree</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../deprecated-list.html"><FONT CLASS="NavBarFont1"><B>Deprecated</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../index-files/index-1.html"><FONT CLASS="NavBarFont1"><B>Index</B></FONT></A>&nbsp;</TD>  <TD BGCOLOR="#EEEEFF" CLASS="NavBarCell1">    <A HREF="../../help-doc.html"><FONT CLASS="NavBarFont1"><B>Help</B></FONT></A>&nbsp;</TD>  </TR></TABLE></TD><TD ALIGN="right" VALIGN="top" ROWSPAN=3><EM><b>Java<sup><font size=-2>TM</font></sup>&nbsp;2&nbsp;Platform<br>Std.&nbsp;Ed. v1.3</b></EM></TD></TR><TR><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">&nbsp;<A HREF="../../java/awt/SystemColor.html"><B>PREV CLASS</B></A>&nbsp;&nbsp;<A HREF="../../java/awt/TextArea.AccessibleAWTTextArea.html"><B>NEXT CLASS</B></A></FONT></TD><TD BGCOLOR="white" CLASS="NavBarCell2"><FONT SIZE="-2">  <A HREF="../../index.html" TARGET="_top"><B>FRAMES</B></A>  &nbsp;&nbsp;<A HREF="TextArea.html" TARGET="_top"><B>NO FRAMES</B></A></FONT></TD></TR><TR><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">  SUMMARY: &nbsp;<A HREF="#inner_class_summary">INNER</A>&nbsp;|&nbsp;<A HREF="#field_summary">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_summary">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_summary">METHOD</A></FONT></TD><TD VALIGN="top" CLASS="NavBarCell3"><FONT SIZE="-2">DETAIL: &nbsp;<A HREF="#field_detail">FIELD</A>&nbsp;|&nbsp;<A HREF="#constructor_detail">CONSTR</A>&nbsp;|&nbsp;<A HREF="#method_detail">METHOD</A></FONT></TD></TR></TABLE><!-- =========== END OF NAVBAR =========== --><HR><font size="-1"><a href="http://java.sun.com/cgi-bin/bugreport.cgi">Submit a bug or feature</a><br>For further API reference and developer documentation, see <a href="http://java.sun.com/products/jdk/1.3/devdocs-vs-specs.html">Java 2 SDK SE Developer Documentation</a>. That documentation  contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples. <p>Java, Java 2D, and JDBC are trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries.<br>Copyright 1993-2000 Sun Microsystems, Inc. 901 San Antonio Road<br>Palo Alto, California, 94303, U.S.A.  All Rights Reserved.</font></BODY></HTML>

⌨️ 快捷键说明

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