哪个事件选择了Java JTextArea中的文本触发器?(Which event a selection of text trigger in Java JTextArea?)

编程入门 行业动态 更新时间:2024-10-25 05:23:38
哪个事件选择了Java JTextArea中的文本触发器?(Which event a selection of text trigger in Java JTextArea?)

我想监视文本的选择到JTextArea。 我不知道选择的文本会触发什么事件。

我只想在JTextArea中选择一些文本时启用一些菜单项,例如菜单中的复制和剪切选项。 我应该监控什么?

I want to monitor the selection of text into the a JTextArea. I don't know what event a selection of text triggers.

I just want to enable some of the menu items as soon as some text is selected out of the JTextArea like copy and cut options into the menu. What should I monitor for that?

更多推荐

本文发布于:2023-07-26 15:47:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1277551.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:触发器   选择了   文本   事件   Java

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!