private Icon createArrowIcon(boolean etched){
  BufferedImage image=new BufferedImage(16,16,BufferedImage.TYPE_INT_ARGB);
  Graphics2D g=image.createGraphics();
  Color highLight, shadow;
  Style style=StyleUtil.getStyle();
  if (style != null) {
    highLight=style.getHighLightColor();
    shadow=style.getShadowColor();
  }
 else {
    highLight=Color.WHITE;
    shadow=Color.BLACK;
  }
  Color nwColor, seColor;
  if (etched) {
    nwColor=shadow;
    seColor=highLight;
  }
 else {
    nwColor=highLight;
    seColor=shadow;
  }
  g.setColor(nwColor);
  g.drawPolyline(new int[]{7,0,13},new int[]{11,4,4},3);
  g.setColor(seColor);
  g.drawLine(7,11,14,4);
  g.dispose();
  return new ImageIcon(image);
}

private Icon createArrowIcon ( boolean etched ) { BufferedImage image = new BufferedImage ( 16 , 16 , BufferedImage . TYPE_INT_ARGB ) ; Graphics2D g = image . createGraphics ( ) ; Color highLight , shadow ; Style style = StyleUtil . getStyle ( ) ; if ( style != null ) { highLight = style . getHighLightColor ( ) ; shadow = style . getShadowColor ( ) ; } else { highLight = Color . WHITE ; shadow = Color . BLACK ; } Color nwColor , seColor ; if ( etched ) { nwColor = shadow ; seColor = highLight ; } else { nwColor = highLight ; seColor = shadow ; } g . setColor ( nwColor ) ; g . drawPolyline ( new int [ ] { 7 , 0 , 13 } , new int [ ] { 11 , 4 , 4 } , 3 ) ; g . setColor ( seColor ) ; g . drawLine ( 7 , 11 , 14 , 4 ) ; g . dispose ( ) ; return new ImageIcon ( image ) ; }
create arrow icon for the menu button .
