public ChessSquare(Composite parent,ChessBoard chessBoard,int id,boolean isLight){
  super(parent,SWT.DOUBLE_BUFFERED | SWT.NO_BACKGROUND);
  board=chessBoard;
  this.id=id;
  this.isLight=isLight;
  addPaintListener(paintListener);
  addControlListener(controlListener);
  addMouseListener(mouseListener);
  addListener(SWT.MouseWheel,mouseWheelListener);
  addListener(SWT.MouseDown,dndListener);
  addListener(SWT.MouseUp,dndListener);
}

public ChessSquare ( Composite parent , ChessBoard chessBoard , int id , boolean isLight ) { super ( parent , SWT . DOUBLE_BUFFERED | SWT . NO_BACKGROUND ) ; board = chessBoard ; this . id = id ; this . isLight = isLight ; addPaintListener ( paintListener ) ; addControlListener ( controlListener ) ; addMouseListener ( mouseListener ) ; addListener ( SWT . MouseWheel , mouseWheelListener ) ; addListener ( SWT . MouseDown , dndListener ) ; addListener ( SWT . MouseUp , dndListener ) ; }
creates a chesssquare tied to the specified board .
