Method modelToView(int pos)
Return type: java.awt.Rectangle
Member of: javax.swing.text.JTextComponent
[api documentation ] [ main menu]

Examples of how the element is used (one line per example):
[add your own example]

1 Rectangle r = modelToView(startOffset);
2 Rectangle caretBounds = textComponent.modelToView(caretPos);
3 cursorBounds = component.modelToView(pos);
4 scrollRectToVisible(modelToView(getCaretPosition()));
5 pane.modelToView(rootView.getView(j).getStartOffset());
Java and J2SE are trademarks or registered trademarks of Sun Microsystems, Inc. in the United States and other Countries.