📄 jtextpane.html
字号:
<TD><CODE><B><A HREF="../../javax/swing/JTextPane.html#getCharacterAttributes()">getCharacterAttributes</A></B>()</CODE><BR> Fetches the character attributes in effect at the current location of the caret, or null.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../javax/swing/text/MutableAttributeSet.html">MutableAttributeSet</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/JTextPane.html#getInputAttributes()">getInputAttributes</A></B>()</CODE><BR> Gets the input attributes for the pane.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../javax/swing/text/Style.html">Style</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/JTextPane.html#getLogicalStyle()">getLogicalStyle</A></B>()</CODE><BR> Fetches the logical style assigned to the paragraph represented by the current position of the caret, or null.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../javax/swing/text/AttributeSet.html">AttributeSet</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/JTextPane.html#getParagraphAttributes()">getParagraphAttributes</A></B>()</CODE><BR> Fetches the current paragraph attributes in effect at the location of the caret, or null if none.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../javax/swing/text/Style.html">Style</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/JTextPane.html#getStyle(java.lang.String)">getStyle</A></B>(<A HREF="../../java/lang/String.html">String</A> nm)</CODE><BR> Fetches a named non-null style previously added.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE> <A HREF="../../javax/swing/text/StyledDocument.html">StyledDocument</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/JTextPane.html#getStyledDocument()">getStyledDocument</A></B>()</CODE><BR> Fetches the model associated with the editor.</TD></TR><TR BGCOLOR="white" CLASS="TableRowColor"><TD ALIGN="right" VALIGN="top" WIDTH="1%"><FONT SIZE="-1"><CODE>protected <A HREF="../../javax/swing/text/StyledEditorKit.html">StyledEditorKit</A></CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/JTextPane.html#getStyledEditorKit()">getStyledEditorKit</A></B>()</CODE><BR> Gets the editor kit.</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/JTextPane.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> void</CODE></FONT></TD><TD><CODE><B><A HREF="../../javax/swing/JTextPane.html#insertComponent(java.awt.Component)">insertComponent</A></B>(<A HREF="../../java/awt/Component.html">Component</A> c)</CODE><BR> Inserts a component into the document as a replacement for the currently selected content.</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/JTextPane.html#insertIcon(javax.swing.Icon)">insertIcon</A></B>(<A HREF="../../javax/swing/Icon.html">Icon</A> g)</CODE><BR> Inserts an icon into the document as a replacement for the currently selected content.</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/JTextPane.html#paramString()">paramString</A></B>()</CODE><BR> Returns a string representation of this JTextPane.</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/JTextPane.html#removeStyle(java.lang.String)">removeStyle</A></B>(<A HREF="../../java/lang/String.html">String</A> nm)</CODE><BR> Removes a named non-null style previously added to the document.</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/JTextPane.html#replaceSelection(java.lang.String)">replaceSelection</A></B>(<A HREF="../../java/lang/String.html">String</A> content)</CODE><BR> Replaces the currently selected content with new content represented by the given string.</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/JTextPane.html#setCharacterAttributes(javax.swing.text.AttributeSet, boolean)">setCharacterAttributes</A></B>(<A HREF="../../javax/swing/text/AttributeSet.html">AttributeSet</A> attr, boolean replace)</CODE><BR> Applies the given attributes to character content.</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/JTextPane.html#setDocument(javax.swing.text.Document)">setDocument</A></B>(<A HREF="../../javax/swing/text/Document.html">Document</A> doc)</CODE><BR> Associates the editor with a text document.</TD></TR>
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -