Method getText(int offs, int len)
Return type:
java.lang.String
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
String fline = getText(0, count-1);
2
out.write( editor.getText( 0, editor.getDocument().getLength()).getBytes( "UTF-8"));
3
InputSource source = new InputSource( new StringReader( editor.getText( 0, editor.getDocument().getLength())));
4
else if ( (newCaretPosition != 0) && OurMsgJTextPane.getText(newCaretPosition-1, 1).equals("\n") )
5
String temp = OurMsgJTextPane.getText(pos,1);
6
String s=getText(cha.getStartOffset(), cha.getEndOffset()-cha.getStartOffset());
7
String content = getText(startOffset,
Java and J2SE are trademarks or registered trademarks of Sun Microsystems, Inc. in the United States and other Countries.