public FancyButton(String text,Icon icon){
  super(text,icon);
  addMouseListener(hoverListener);
  addFocusListener(focusListener);
  setBorderPainted(false);
  setBorder(new DropShadowBorder(SHADOW_COLOR,5,0.5f,12,false,false,true,true));
  setFocusPainted(false);
  setContentAreaFilled(false);
  setHorizontalAlignment(SwingConstants.LEFT);
  setHorizontalTextPosition(SwingConstants.RIGHT);
  setCursor(Cursor.getPredefinedCursor(Cursor.HAND_CURSOR));
  setForeground(normalTextColor);
  drawArrow=true;
}

public FancyButton ( String text , Icon icon ) { super ( text , icon ) ; addMouseListener ( hoverListener ) ; addFocusListener ( focusListener ) ; setBorderPainted ( false ) ; setBorder ( new DropShadowBorder ( SHADOW_COLOR , 5 , 0.5f , 12 , false , false , true , true ) ) ; setFocusPainted ( false ) ; setContentAreaFilled ( false ) ; setHorizontalAlignment ( SwingConstants . LEFT ) ; setHorizontalTextPosition ( SwingConstants . RIGHT ) ; setCursor ( Cursor . getPredefinedCursor ( Cursor . HAND_CURSOR ) ) ; setForeground ( normalTextColor ) ; drawArrow = true ; }
creates a button with initial text and an icon .
