怎样设置JTextArea 文本域中选中的文字的颜色和选择区域背景颜色

JTextArea有个setSelectedTextColor(Color c)方法和setSelectionColor(Color c)方法,分别设置JTextArea选中文字和背景颜色。
相关文章
相关标签/搜索