This question shows research effort; it is useful and clear
5
This question does not show any research effort; it is unclear or not useful
Bookmark this question.
Show activity on this post.
有Swing没有办法让单一选项有两种颜色?我的意思是,如果我有一个option,比如说Show only cities [Alt+C]in JComboBox,我想要Show only cities一种颜色的文本和[Alt+C]另一种颜色的(热键)。同样,我有JList,其中包含一个字符串项列表。我想通过颜色区分一个。