public void actionPerformed(ActionEvent e) {
    if (e.getSource() == colorBorderButton) {
      Color chosenColor =
          JColorChooser.showDialog(
              colorBorderButton,
              messageBundle.getString("viewer.utilityPane.annotation.ink.colorBorderChooserTitle"),
              colorBorderButton.getBackground());
      if (chosenColor != null) {
        // change the colour of the button background
        colorBorderButton.setBackground(chosenColor);
        annotation.setColor(chosenColor);

        // save the action state back to the document structure.
        updateCurrentAnnotation();
        currentAnnotationComponent.resetAppearanceShapes();
        currentAnnotationComponent.repaint();
      }
    }
  }