private void defineArrowButtons(UIDefaults d){
  String c=PAINTER_PREFIX + "ArrowButtonPainter";
  String p="ArrowButton";
  d.put(p + ".States","Enabled,MouseOver,Disabled,Pressed");
  d.put(p + "[Disabled].foreground",new ColorUIResource(0x9ba8cf));
  d.put(p + "[Enabled].foreground",new ColorUIResource(0x5b7ea4));
  d.put(p + "[Pressed].foreground",new ColorUIResource(0x134D8C));
  d.put(p + "[Disabled].foregroundPainter",new LazyPainter(c,ArrowButtonPainter.Which.FOREGROUND_DISABLED));
  d.put(p + "[Enabled].foregroundPainter",new LazyPainter(c,ArrowButtonPainter.Which.FOREGROUND_ENABLED));
  d.put(p + "[MouseOver].foregroundPainter",new LazyPainter(c,ArrowButtonPainter.Which.FOREGROUND_ENABLED));
  d.put(p + "[Pressed].foregroundPainter",new LazyPainter(c,ArrowButtonPainter.Which.FOREGROUND_PRESSED));
}

private void defineArrowButtons ( UIDefaults d ) { String c = PAINTER_PREFIX + "ArrowButtonPainter" ; String p = "ArrowButton" ; d . put ( p + ".States" , "Enabled,MouseOver,Disabled,Pressed" ) ; d . put ( p + "[Disabled].foreground" , new ColorUIResource ( 0x9ba8cf ) ) ; d . put ( p + "[Enabled].foreground" , new ColorUIResource ( 0x5b7ea4 ) ) ; d . put ( p + "[Pressed].foreground" , new ColorUIResource ( 0x134D8C ) ) ; d . put ( p + "[Disabled].foregroundPainter" , new LazyPainter ( c , ArrowButtonPainter . Which . FOREGROUND_DISABLED ) ) ; d . put ( p + "[Enabled].foregroundPainter" , new LazyPainter ( c , ArrowButtonPainter . Which . FOREGROUND_ENABLED ) ) ; d . put ( p + "[MouseOver].foregroundPainter" , new LazyPainter ( c , ArrowButtonPainter . Which . FOREGROUND_ENABLED ) ) ; d . put ( p + "[Pressed].foregroundPainter" , new LazyPainter ( c , ArrowButtonPainter . Which . FOREGROUND_PRESSED ) ) ; }
initialize the arrow button settings .
