Uses of Interface
javax.swing.text.Style
Packages that use Style
Package
Description
Provides a set of "lightweight" (all-Java language) components
that, to the maximum degree possible, work the same on all platforms.
Provides classes and interfaces that deal with editable and noneditable text
components.
Provides the class
HTMLEditorKit
and supporting classes for creating
HTML text editors.-
Uses of Style in javax.swing
Methods in javax.swing that return StyleModifier and TypeMethodDescriptionAdds a new style into the logical style hierarchy.JTextPane.getLogicalStyle()
Fetches the logical style assigned to the paragraph represented by the current position of the caret, ornull
.Fetches a named non-null
style previously added.Methods in javax.swing with parameters of type Style -
Uses of Style in javax.swing.text
Classes in javax.swing.text that implement StyleModifier and TypeClassDescriptionclass
A collection of attributes, typically used to represent character and paragraph styles.Methods in javax.swing.text that return StyleModifier and TypeMethodDescriptionAdds a new style into the logical style hierarchy.Adds a new style into the style hierarchy.Adds a new style into the logical style hierarchy.DefaultStyledDocument.getLogicalStyle
(int p) Fetches the logical style assigned to the paragraph represented by the given position.StyledDocument.getLogicalStyle
(int p) Gets a logical style for a given position in a paragraph.Fetches a named style previously added.Fetches a named style previously added to the documentFetches a named style previously added.Methods in javax.swing.text with parameters of type StyleModifier and TypeMethodDescriptionAdds a new style into the logical style hierarchy.Adds a new style into the style hierarchy.Adds a new style into the logical style hierarchy.void
DefaultStyledDocument.setLogicalStyle
(int pos, Style s) Sets the logical style to use for the paragraph at the given position.void
StyledDocument.setLogicalStyle
(int pos, Style s) Sets the logical style to use for the paragraph at the given position.protected void
DefaultStyledDocument.styleChanged
(Style style) Called when any of this document's styles have changed.Constructors in javax.swing.text with parameters of type StyleModifierConstructorDescriptionNamedStyle
(String name, Style parent) Creates a new named style.NamedStyle
(Style parent) Creates a new named style. -
Uses of Style in javax.swing.text.html
Methods in javax.swing.text.html that return Style