1 | public void actionPerformed(ActionEvent evt)↵ | | 1 | public void actionPerformed(ActionEvent evt)↵
|
2 | {↵ | | 2 | {↵
|
3 | final SyntaxStyle style = _list.getSelectedSyntaxStyle();↵ | | 3 | final SyntaxStyle style = _list.getSelectedSyntaxStyle();↵
|
4 | final int origRGB = style.getTextRGB();↵ | | 4 | final int origRGB = style.getBackgroundRGB();↵
|
5 | final Color color = JColorChooser.showDialog(null,↵ | | 5 | final Color color = JColorChooser.showDialog(null,↵
|
6 | //i18n[syntax.selColor=Select Color]↵ | | 6 | //i18n[syntax.selColor2=Select Color]↵
|
7 | s_stringMgr.getString("syntax.selColor"), new Color(origRGB));↵ | | 7 | s_stringMgr.getString("syntax.selColor2"), new Color(origRGB));↵
|
8 | if (color != null)↵ | | 8 | if (color != null)↵
|
9 | {↵ | | 9 | {↵
|
10 | style.setTextRGB(color.getRGB());↵ | | 10 | style.setBackgroundRGB(color.getRGB());↵
|
11 | | | 11 |
|