可以使用JTextPane(文本窗格)你可以先判断是否关键字再使用控件的方法,具体在很多书上都有。
基于28个网页-相关网页
... JScrollPane 滚动面板 JTextPane 文本面板 JPopupMenu 弹出菜单 ...
基于1个网页-相关网页
HTMLDocumentEditor's source code is readable and easy to grasp, and a quick inspection of it reveals that the text area is a JTextPane.
HTMLDocumentEditor的源码可读且易于掌握,快速检查该源码后发现文本区域是一个JTextPane。
youdao
应用推荐
模块上移
模块下移
不移动