Thousands of examples at your fingertips!
All classes, methods fields etc. are linked to the API documentation.
All members are listed by frequency of use or alphabetically (see left pane).
Links to examples and utility functions/classes are shown below
Interface javax.swing.text.Caret
[api documentation] [ main menu] Search

Links to examples (only one line shown below for each example):
[add your own example]

1 Caret caret = c.getCaret();
2 Caret caret = c.getCaret();
3 Caret caret = textField.getCaret();
4 Caret caret = (Caret)caretWRef.get();
5 Caret caret = c.getCaret(); // it is at the end of replacement
6 target.getCaret().setDot(block[0] + ((JCClass)item).getFullName().length());
7 javax.swing.text.Caret c = packageName.getCaret ();
8 Caret caret = p.getCaret();
9 target.getCaret().getDot(), original);
10 textPane.getCaret().setDot(Integer.MAX_VALUE);
11 int dot = c.getDot ();
12 codeEditorPane.getCaret().setVisible(true); // true is HARDCODED here due to BUG in MAC OS X
13 editorComponent.getCaret().setVisible(true);
14 getCaret().setBlinkRate(0);
15 OurMsgJTextPane.getCaret().setVisible(true);
16 codeArea.getCaret().setVisible(codeButton.isSelected() && codeArea.hasFocus());
17 editor.getCaret().setDot(lineOffset);
18 Point caretPoint = textArea.getCaret().getMagicCaretPosition();

Links to utility classes and functions:

Java and J2SE are trademarks or registered trademarks of Sun Microsystems, Inc. in the United States and other Countries.