1 | private static class FontColorButtonListener implements ActionListener↵ | | 1 | private static class BackgroundColorButtonListener implements ActionListener↵
|
2 | {↵ | | 2 | {↵
|
3 | private final StylesList _list;↵ | | 3 | private final StylesList _list;↵
|
|
4 | FontColorButtonListener(StylesList list)↵ | | 4 | BackgroundColorButtonListener(StylesList list)↵
|
5 | {↵ | | 5 | {↵
|
6 | super();↵ | | 6 | super();↵
|
7 | _list = list;↵ | | 7 | _list = list;↵
|
8 | }↵ | | 8 | }↵
|
|
9 | public void actionPerformed(ActionEvent evt)↵ | | 9 | public void actionPerformed(ActionEvent evt)↵
|
10 | {↵ | | 10 | {↵
|
11 | final SyntaxStyle style = _list.getSelectedSyntaxStyle();↵ | | 11 | final SyntaxStyle style = _list.getSelectedSyntaxStyle();↵
|
12 | final int origRGB = style.getTextRGB();↵ | | 12 | final int origRGB = style.getBackgroundRGB();↵
|
13 | final Color color = JColorChooser.showDialog(null,↵ | | 13 | final Color color = JColorChooser.showDialog(null,↵
|
14 | //i18n[syntax.selColor=Select Color]↵ | | 14 | //i18n[syntax.selColor2=Select Color]↵
|
15 | s_stringMgr.getString("syntax.selColor"), new Color(origRGB));↵ | | 15 | s_stringMgr.getString("syntax.selColor2"), new Color(origRGB));↵
|
16 | if (color != null)↵ | | 16 | if (color != null)↵
|
17 | {↵ | | 17 | {↵
|
18 | style.setTextRGB(color.getRGB()) | | 18 | style.setBackgroundRGB(color.getRGB())
|