开发者

Select fragment of a text in JTextArea

开发者 https://www.devze.com 2023-03-03 16:15 出处:网络
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 JT

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

精彩评论

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