📄 jtextarea.html
字号:
<CODE> int</CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/JTextArea.html#getRows()">getRows</A></B>()</CODE><BR> Returns the number of rows in the TextArea.</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/JTextArea.html#getScrollableTracksViewportWidth()">getScrollableTracksViewportWidth</A></B>()</CODE><BR> Returns true if a viewport should always force the width of this Scrollable to match the width of the viewport.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> int</CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/JTextArea.html#getScrollableUnitIncrement(java.awt.Rectangle, int, int)">getScrollableUnitIncrement</A></B>(<A HREF="../../java/awt/Rectangle.html">Rectangle</A> visibleRect, int orientation, int direction)</CODE><BR> Components that display logical rows or columns should compute the scroll increment that will completely expose one new row or column, depending on the value of orientation.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> int</CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/JTextArea.html#getTabSize()">getTabSize</A></B>()</CODE><BR> Gets the number of characters used to expand tabs.</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/JTextArea.html#getUIClassID()">getUIClassID</A></B>()</CODE><BR> Returns the class ID for the UI.</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/JTextArea.html#getWrapStyleWord()">getWrapStyleWord</A></B>()</CODE><BR> Get the style of wrapping used if the text area is wrapping lines.</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/JTextArea.html#insert(java.lang.String, int)">insert</A></B>(<A HREF="../../java/lang/String.html">String</A> str, int pos)</CODE><BR> Inserts the specified text at the specified position.</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/JTextArea.html#isManagingFocus()">isManagingFocus</A></B>()</CODE><BR> Turns off tab traversal once focus gained.</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/JTextArea.html#paramString()">paramString</A></B>()</CODE><BR> Returns a string representation of this JTextArea.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected void</CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/JTextArea.html#processKeyEvent(java.awt.event.KeyEvent)">processKeyEvent</A></B>(<A HREF="../../java/awt/event/KeyEvent.html">KeyEvent</A> e)</CODE><BR> Make sure that TAB and Shift-TAB events get consumed, so that awt doesn't attempt focus traversal.</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/JTextArea.html#replaceRange(java.lang.String, int, int)">replaceRange</A></B>(<A HREF="../../java/lang/String.html">String</A> str, int start, int end)</CODE><BR> Replaces text from the indicated start to end position with the new text specified.</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/JTextArea.html#setColumns(int)">setColumns</A></B>(int columns)</CODE><BR> Sets the number of columns for this TextArea.</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/JTextArea.html#setFont(java.awt.Font)">setFont</A></B>(<A HREF="../../java/awt/Font.html">Font</A> f)</CODE><BR> Sets the current 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/JTextArea.html#setLineWrap(boolean)">setLineWrap</A></B>(boolean wrap)</CODE><BR> Sets the line-wrapping policy of the text area.</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/JTextArea.html#setRows(int)">setRows</A></B>(int rows)</CODE><BR> Sets the number of rows for this TextArea.</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/JTextArea.html#setTabSize(int)">setTabSize</A></B>(int size)</CODE><BR> Sets the number of characters to expand tabs to.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1">
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -