- lcaseColour.setForeground(Color.GRAY);
- }
-
- /**
- * Action on clicking 'Lower case colour', which results in changing colour of
- * all lower-case buttons when a colour is picked. A second click of the
- * button turns off this behaviour.
- */
- @Override
- public void lcaseColour_actionPerformed(ActionEvent e)
- {
- boolean enable = !selectedButtons.contains(lcaseColour);
- selectedButtons.clear();
- if (enable)
- {
- selectedButtons.add(lcaseColour);
- lcaseColour.setForeground(lowerCaseButtons.get(0).getForeground());
- lcaseColour.setForeground(Color.black);
- }
- else
- {
- lcaseColour.setBackground(Color.white);
- lcaseColour.setForeground(Color.gray);
- }