Index (Frames) | Index (No Frames) | Package | Package Tree | Tree
javax.swing

Class JTextPane

java.lang.Object
|
+--java.awt.Component
   |
   +--java.awt.Container
      |
      +--javax.swing.JComponent
         |
         +--javax.swing.text.JTextComponent
            |
            +--javax.swing.JEditorPane
               |
               +--javax.swing.JTextPane


public class JTextPane

extends JEditorPane

JTextPane

Author:

Constructor Summary

JTextPane()

Constructor JTextPane
JTextPane(javax.swing.text.StyledDocument document)

Constructor JTextPane

Method Summary

javax.swing.text.StyleaddStyle(java.lang.String nm, javax.swing.text.Style parent)

addStyle
javax.swing.text.EditorKitcreateDefaultEditorKit()

createDefaultEditorKit
javax.swing.text.AttributeSetgetCharacterAttributes()

getCharacterAttributes
javax.swing.text.MutableAttributeSetgetInputAttributes()

getInputAttributes
javax.swing.text.StylegetLogicalStyle()

getLogicalStyle
javax.swing.text.AttributeSetgetParagraphAttributes()

getParagraphAttributes
javax.swing.text.StylegetStyle(java.lang.String nm)

getStyle
javax.swing.text.StyledDocumentgetStyledDocument()

getStyledDocument
javax.swing.text.StyledEditorKitgetStyledEditorKit()

getStyledEditorKit
java.lang.StringgetUIClassID()

getUIClassID
voidinsertComponent(java.awt.Component component)

insertComponent
voidinsertIcon(javax.swing.Icon icon)

insertIcon
java.lang.StringparamString()

paramString
voidremoveStyle(java.lang.String nm)

removeStyle
voidreplaceSelection(java.lang.String content)

replaceSelection
voidsetCharacterAttributes(javax.swing.text.AttributeSet attribute, boolean replace)

setCharacterAttributes
voidsetDocument(javax.swing.text.Document document)

setDocument
voidsetEditorKit(javax.swing.text.EditorKit editor)

setEditorKit
voidsetLogicalStyle(javax.swing.text.Style style)

setLogicalStyle
voidsetParagraphAttributes(javax.swing.text.AttributeSet attribute, boolean replace)

setParagraphAttributes
voidsetStyledDocument(javax.swing.text.StyledDocument document)

setStyledDocument

Constructor Details

JTextPane

public JTextPane()

Constructor JTextPane


JTextPane

public JTextPane(javax.swing.text.StyledDocument document)

Constructor JTextPane

Parameters:


Method Details

addStyle

public Style addStyle(java.lang.String nm, javax.swing.text.Style parent)

addStyle

Parameters:


createDefaultEditorKit

protected EditorKit createDefaultEditorKit()

createDefaultEditorKit


getCharacterAttributes

public AttributeSet getCharacterAttributes()

getCharacterAttributes


getInputAttributes

public MutableAttributeSet getInputAttributes()

getInputAttributes


getLogicalStyle

public Style getLogicalStyle()

getLogicalStyle


getParagraphAttributes

public AttributeSet getParagraphAttributes()

getParagraphAttributes


getStyle

public Style getStyle(java.lang.String nm)

getStyle

Parameters:


getStyledDocument

public StyledDocument getStyledDocument()

getStyledDocument


getStyledEditorKit

protected final StyledEditorKit getStyledEditorKit()

getStyledEditorKit


getUIClassID

public String getUIClassID()

getUIClassID


insertComponent

public void insertComponent(java.awt.Component component)

insertComponent

Parameters:


insertIcon

public void insertIcon(javax.swing.Icon icon)

insertIcon

Parameters:


paramString

protected String paramString()

paramString


removeStyle

public void removeStyle(java.lang.String nm)

removeStyle

Parameters:


replaceSelection

public void replaceSelection(java.lang.String content)

replaceSelection

Parameters:


setCharacterAttributes

public void setCharacterAttributes(javax.swing.text.AttributeSet attribute, boolean replace)

setCharacterAttributes

Parameters:


setDocument

public void setDocument(javax.swing.text.Document document)

setDocument

Parameters:


setEditorKit

public final void setEditorKit(javax.swing.text.EditorKit editor)

setEditorKit

Parameters:


setLogicalStyle

public void setLogicalStyle(javax.swing.text.Style style)

setLogicalStyle

Parameters:


setParagraphAttributes

public void setParagraphAttributes(javax.swing.text.AttributeSet attribute, boolean replace)

setParagraphAttributes

Parameters:


setStyledDocument

public void setStyledDocument(javax.swing.text.StyledDocument document)

setStyledDocument

Parameters: