开发者

Select fragment of a text in JTextArea

I need to sel开发者_运维问答ect some fragment of a text in JTextArea. How should i do that?...


Use setCaretPosition(selectionStart) followed by moveCaretPosition(selectionEnd). This is documented in JTextComponent's javadoc

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜