pkg.html

来自「java类库详细讲解」· HTML 代码 · 共 272 行

HTML
272
字号
<HTML>
<HEAD>
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
<TITLE>javax.swing.text Examples from The Java Developers Almanac 1.4</TITLE>
<META CONTENT="Patrick Chan" NAME="AUTHOR">
<META CONTENT="Code Examples from the Java Developers Almanac 1.4" NAME="DESCRIPTION">
<META CONTENT="Java Examples" NAME="KEYWORDS">
<META CONTENT="Addison-Wesley/Patrick Chan" NAME="OWNER">
<META CONTENT="3/20/02" NAME="revision">
<STYLE TYPE="text/css">
<!--     BODY CODE  {font-family: Courier, Monospace;           font-size: 11pt}    TABLE, BODY          {font-family: Verdana, Arial, Helvetica, sans-serif;           font-size: 10pt}    PRE   {font-family: Courier, Monospace;           font-size: 10pt}    H2    {font-family: Verdana, Arial, Helvetica, sans-serif;           font-size: 12pt}    H3    {font-family: Verdana, Arial, Helvetica, sans-serif;           font-size: 11pt}    A.eglink {text-decoration: none}    A:hover.eglink {text-decoration: underline}    -->
</STYLE>
</HEAD>
<BODY>
<TABLE CELLSPACING="0" CELLPADDING="0" BORDER="0">
<TR>
<TD rowspan="3"><A HREF="/?l=ex"><IMG BORDER="0" ALIGN="BOTTOM" HSPACE="10" SRC="/egs/almanac14a.jpg"></A></TD><TD VALIGN="top"><font face="Times" size="6"><b>The Java Developers Almanac 1.4</b></font>
<br>
        Order this book from <a href="/cgi-bin/scripts/redirect.pl?l=ex&url=http://www.amazon.com/exec/obidos/ASIN/0201752808/xeo">Amazon</a>.
    </TD>
</TR>
<TR>
<TD align="right" valign="bottom">
<FORM method="get" action="/cgi-bin/search/find.pl">
<INPUT size="25" name="words" type="text"><INPUT value="Search" type="submit">
</FORM>
</TD>
</TR>
</TABLE>
<HR color="#6666cc">
<DIV ALIGN="LEFT">
<A HREF="/">Home</A>
    &gt;
    <A HREF="../index.html">List of Packages</A>
</DIV>
<br>
<h2>javax.swing.text</h2>
<TABLE CELLSPACING="0" CELLPADDING="5" BORDER="0" width="600">
<TR>
<TD HEIGHT="2" width="20" VALIGN="TOP"></TD><TD VALIGN="TOP">

  
  
<br>
<a name="JTextComponent"></a><b>JTextComponent</b>
<hr>
  
    e967. <a class="eglink" href="GetText.html">Retrieving Text from a JTextComponent</a>
<br>
  
    e968. <a class="eglink" href="PartialSeg.html">Retrieving All the Text from a JTextComponent Efficiently</a>
<br>
  
    e969. <a class="eglink" href="EditTextField.html">Modifying Text in a JTextComponent</a>
<br>
  
    e970. <a class="eglink" href="ConcurReadText.html">Asynchronously Reading the Contents of a Visible JTextComponent</a>
<br>
  
    e971. <a class="eglink" href="FindWord.html">Finding Word Boundaries in a JTextComponent</a>
<br>
  
    e972. <a class="eglink" href="GetWrappedLines.html">Retrieving the Visible Lines in a JTextComponent</a>
<br>
  
    e973. <a class="eglink" href="Pos.html">Using a Position in a JTextComponent</a>
<br>
  
    e974. <a class="eglink" href="LimitText.html">Limiting the Capacity of a JTextComponent</a>
<br>
  
    e975. <a class="eglink" href="DragEnabledTextArea.html">Enabling Text-Dragging on a JTextComponent</a>
<br>
  
    e976. <a class="eglink" href="ShareDoc.html">Sharing a Document Between JTextComponents</a>
<br>
  
    e977. <a class="eglink" href="WalkViews.html">Enumerating All the Views in a JTextComponent</a>
<br>

  
  
<br>
<a name="JTextField"></a><b>JTextField</b>
<hr>
  
    e978. <a class="eglink" href="tf_TextField.html">Creating a JTextField Component</a>
<br>
  
    e979. <a class="eglink" href="tf_PassField.html">Creating a Password JTextField Component</a>
<br>
  
    e980. <a class="eglink" href="tf_Align.html">Aligning the Text in a JTextField Component</a>
<br>

  
  
<br>
<a name="JTextArea"></a><b>JTextArea</b>
<hr>
  
    e981. <a class="eglink" href="ta_TextArea.html">Creating a JTextArea Component</a>
<br>
  
    e982. <a class="eglink" href="ta_EditTextArea.html">Modifying Text in a JTextArea Component</a>
<br>
  
    e983. <a class="eglink" href="ta_EnumLines.html">Enumerating the Lines in a JTextArea Component</a>
<br>
  
    e984. <a class="eglink" href="ta_TabSize.html">Setting the Tab Size of a JTextArea Component</a>
<br>
  
    e985. <a class="eglink" href="ta_OverrideTab.html">Moving the Focus with the TAB key in a JTextArea Component</a>
<br>
  
    e986. <a class="eglink" href="ta_Wrap.html">Enabling Word and Line Wrapping in a JTextArea Component</a>
<br>
  
    e987. <a class="eglink" href="ta_Console.html">Implementing a Console Window with a JTextArea Component</a>
<br>

  
  
<br>
<a name="JTextPane"></a><b>JTextPane</b>
<hr>
  
    e988. <a class="eglink" href="tp_StyledText.html">Inserting Styled Text in a JTextPane Component</a>
<br>
  
    e989. <a class="eglink" href="tp_EnumParas.html">Enumerating the Paragraphs of a JTextPane Component</a>
<br>
  
    e990. <a class="eglink" href="tp_ImageText.html">Inserting an Image into a JTextPane Component</a>
<br>
  
    e991. <a class="eglink" href="tp_CompText.html">Inserting a Component into a JTextPane Component</a>
<br>
  
    e992. <a class="eglink" href="tp_TabStops.html">Customizing Tab Stops in a JTextPane Component</a>
<br>

  
  
<br>
<a name="JEditorPane"></a><b>JEditorPane</b>
<hr>
  
    e993. <a class="eglink" href="ep_ShowHTML.html">Displaying Simple HTML Files</a>
<br>

  
  
<br>
<a name="JFormattedTextField"></a><b>JFormattedTextField</b>
<hr>
  
    e994. <a class="eglink" href="formtext_FormTextNum.html">Creating a Text Field to Display and Edit a Number</a>
<br>
  
    e995. <a class="eglink" href="formtext_FormTextDate.html">Creating a Text Field to Display and Edit a Date</a>
<br>
  
    e996. <a class="eglink" href="formtext_FormTextMask.html">Creating a Text Field to Display and Edit a Phone Number</a>
<br>

  
  
<br>
<a name="Caret%20and%20Selection"></a><b>Caret and Selection</b>
<hr>
  
    e997. <a class="eglink" href="Caret.html">Moving the Caret of a JTextComponent</a>
<br>
  
    e998. <a class="eglink" href="Blink.html">Setting the Blink Rate of a JTextComponent's Caret</a>
<br>
  
    e999. <a class="eglink" href="Selection.html">Using the Selection of a JTextComponent</a>
<br>

  
  
<br>
<a name="Actions%20and%20Key%20Bindings"></a><b>Actions and Key Bindings</b>
<hr>
  
    e1000. <a class="eglink" href="OverrideDefAction.html">Overriding the Default Action of a JTextComponent</a>
<br>
  
    e1001. <a class="eglink" href="CreateCmd.html">Creating a Custom Editing Command for a JTextComponent</a>
<br>
  
    e1002. <a class="eglink" href="OverrideKey.html">Overriding a Few Default Typed Key Bindings in a JTextComponent</a>
<br>
  
    e1003. <a class="eglink" href="OverrideKey2.html">Overriding Many Default Typed Key Bindings in a JTextComponent</a>
<br>
  
    e1004. <a class="eglink" href="ListTextKeys.html">Listing the Key Bindings in a JTextComponent Keymap</a>
<br>

  
  
<br>
<a name="Styles"></a><b>Styles</b>
<hr>
  
    e1005. <a class="eglink" href="style_HiliteWords.html">Highlighting Words in a JTextComponent</a>
<br>
  
    e1006. <a class="eglink" href="style_HiliteWords2.html">Setting the Font and Color of Text in a JTextPane Using Styles</a>
<br>
  
    e1007. <a class="eglink" href="style_ShareStyleContext.html">Sharing Styles Between JTextPanes</a>
<br>
  
    e1008. <a class="eglink" href="style_ListStyles.html">Listing the Styles Associated with a JTextPane</a>
<br>
  
    e1009. <a class="eglink" href="style_ListAttr.html">Listing the Attributes in a Style</a>
<br>
  
    e1010. <a class="eglink" href="style_ListStyles2.html">Using a Popup to Apply Styles to a JTextPane</a>
<br>
  
    e1011. <a class="eglink" href="style_SetPara.html">Retaining the Logical Style When Setting a New Paragraph Style</a>
<br>
  
    e1012. <a class="eglink" href="style_ModStyle.html">Automatically Updating Styled Text When a Style Is Updated</a>
<br>
  
    e1013. <a class="eglink" href="style_IsCharPara.html">Determining If a Style Attribute Applies to a Character or the Paragraph</a>
<br>

  
  
<br>
<a name="Events"></a><b>Events</b>
<hr>
  
    e1014. <a class="eglink" href="ListenCaretEvent.html">Listening for Caret Movement Events in a JTextComponent</a>
<br>
  
    e1015. <a class="eglink" href="ChangeEvt.html">Listening for Editing Changes in a JTextComponent</a>
<br>

</TD>
</TR>
</TABLE>
<br>
<FONT FACE="Verdana, Arial, Helvetica, sans-serif" SIZE="0">
&copy; 2002 Addison-Wesley.
</FONT>
</BODY>
</HTML>

⌨️ 快捷键说明

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