public static Rectangle2D toAwtRectangle(final Rectangle rect){
  final Rectangle2D rect2d=new Rectangle2D.Double();
  rect2d.setRect(rect.x,rect.y,rect.width,rect.height);
  return rect2d;
}

public static Rectangle2D toAwtRectangle ( final Rectangle rect ) { final Rectangle2D rect2d = new Rectangle2D . Double ( ) ; rect2d . setRect ( rect . x , rect . y , rect . width , rect . height ) ; return rect2d ; }
transform a swt rectangle instance into an awt one .
