private void paintForegroundPressed(Graphics2D g,int width,int height){
  Shape s=decodeArrowPath(width,height);
  g.setPaint(pressedColor);
  g.fill(s);
}

private void paintForegroundPressed ( Graphics2D g , int width , int height ) { Shape s = decodeArrowPath ( width , height ) ; g . setPaint ( pressedColor ) ; g . fill ( s ) ; }
paint the arrow in pressed state .
