Use is subject to License Terms. Your use of this web site or any of its content or software indicates your agreement to be bound by these License Terms.

Copyright © 2006 Sun Microsystems, Inc. All rights reserved.

JSR-209 (Final Approval Ballot)

Uses of Interface
javax.swing.text.Style

Packages that use Style
javax.swing Provides a set of "lightweight" (all-Java language) components that, to the maximum degree possible, work the same on all platforms. 
javax.swing.text Provides classes and interfaces that deal with editable and noneditable text components. 
 

Uses of Style in javax.swing
 

Methods in javax.swing that return Style
 Style JTextPane.addStyle(java.lang.String nm, Style parent)
          Adds a new style into the logical style hierarchy.
 Style JTextPane.getStyle(java.lang.String nm)
          Fetches a named non-null style previously added.
 Style JTextPane.getLogicalStyle()
          Fetches the logical style assigned to the paragraph represented by the current position of the caret, or null.
 

Methods in javax.swing with parameters of type Style
 Style JTextPane.addStyle(java.lang.String nm, Style parent)
          Adds a new style into the logical style hierarchy.
 void JTextPane.setLogicalStyle(Style s)
          Sets the logical style to use for the paragraph at the current caret position.
 

Uses of Style in javax.swing.text
 

Methods in javax.swing.text that return Style
 Style StyledDocument.addStyle(java.lang.String nm, Style parent)
          Adds a new style into the logical style hierarchy.
 Style StyledDocument.getStyle(java.lang.String nm)
          Fetches a named style previously added.
 Style StyledDocument.getLogicalStyle(int p)
          Gets a logical style for a given position in a paragraph.
 

Methods in javax.swing.text with parameters of type Style
 Style StyledDocument.addStyle(java.lang.String nm, Style parent)
          Adds a new style into the logical style hierarchy.
 void StyledDocument.setLogicalStyle(int pos, Style s)
          Sets the logical style to use for the paragraph at the given position.
 


JSR-209 (Final Approval Ballot)

Copyright © 2006 Sun Microsystems, Inc. All rights reserved. Use is subject to License Terms. Your use of this web site or any of its content or software indicates your agreement to be bound by these License Terms.

For more information, please consult the JSR 209 specification.