A few key points: you should use a JTextPane for the flash-card content so you can use HTML to format the rendered text.
一些关键点:应该使用一个JTextPane来显示flash - card的内容,以便使用html来格式化所呈现的文本。
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。
应用推荐