public final class Components
extends java.lang.Object
| Modifier and Type | Method and Description | 
|---|---|
static javax.swing.JLayeredPane | 
findLayeredPane(java.awt.Component target)
Finds the layered pane for a component. 
 | 
static void | 
moveCaretPositionCenter(javax.swing.text.JTextComponent c,
                       int position)
Moves the caret to a new position, leaving behind a mark defined
 by the last time setCaretPosition was called. 
 | 
static void | 
setCaretPositionCenter(javax.swing.text.JTextComponent c,
                      int position)
Sets the position of the text insertion caret for the
 TextComponent. 
 | 
public static javax.swing.JLayeredPane findLayeredPane(java.awt.Component target)
target - public static void setCaretPositionCenter(javax.swing.text.JTextComponent c,
                                          int position)
setCaretPosition() except that if the new caret
 position is offscreen, it recenters the new position vertically
 into the center of the parent view port.position - the positionpublic static void moveCaretPositionCenter(javax.swing.text.JTextComponent c,
                                           int position)
setCaretPositionCenter in that if the new position
 is offscreen, it recenters the new position vertically into the
 center of the parent view port.position - the position