JavaTM 2 Platform
Standard Ed. 6

类 javax.swing.text.StyledEditorKit
的使用

使用 StyledEditorKit 的软件包
javax.swing 提供一组“轻量级”(全部是 Java 语言)组件,尽量让这些组件在所有平台上的工作方式都相同。 
javax.swing.text 提供类 HTMLEditorKit 和创建 HTML 文本编辑器的支持类。 
javax.swing.text.html 提供类 HTMLEditorKit 和创建 HTML 文本编辑器的支持类。 
javax.swing.text.rtf 提供一个类 (RTFEditorKit),用于创建富文本格式(Rich-Text-Format)的文本编辑器。 
 

javax.swingStyledEditorKit 的使用
 

返回 StyledEditorKitjavax.swing 中的方法
protected  StyledEditorKit JTextPane.getStyledEditorKit()
          获取编辑器工具包。
 

javax.swing.textStyledEditorKit 的使用
 

返回 StyledEditorKitjavax.swing.text 中的方法
protected  StyledEditorKit StyledEditorKit.StyledTextAction.getStyledEditorKit(JEditorPane e)
          获取与编辑器窗格相关的编辑器工具包。
 

javax.swing.text.htmlStyledEditorKit 的使用
 

javax.swing.text.htmlStyledEditorKit 的子类
 class HTMLEditorKit
          Swing JEditorPane 文本组件通过称为 EditorKit 的插件机制来支持不同种类的内容。
 

javax.swing.text.rtfStyledEditorKit 的使用
 

javax.swing.text.rtfStyledEditorKit 的子类
 class RTFEditorKit
          这是对 RTF 编辑功能的默认实现。
 


JavaTM 2 Platform
Standard Ed. 6

提交错误或意见
有关更多的 API 参考资料和开发人员文档,请参阅 Java 2 SDK SE 开发人员文档。该文档包含更详细的、面向开发人员的描述,以及总体概述、术语定义、使用技巧和工作代码示例。

版权所有 2004 Sun Microsystems, Inc. 保留所有权利。 请遵守许可证条款。另请参阅文档重新分发政策