public boolean refreshLocation(){
  if (parentCom != null && contentCom != null) {
    Point location=SwingUtilities.convertPoint(parentCom,getLocation(),this);
    setBounds(location.x + deltaX,(location.y + deltaY) - getPreferredSize().height,getPreferredSize().width,getPreferredSize().height);
    validate();
    return true;
  }
 else   throw new IllegalArgumentException("parentCom or contentCom is null!");
}

public boolean refreshLocation ( ) { if ( parentCom != null && contentCom != null ) { Point location = SwingUtilities . convertPoint ( parentCom , getLocation ( ) , this ) ; setBounds ( location . x + deltaX , ( location . y + deltaY ) - getPreferredSize ( ) . height , getPreferredSize ( ) . width , getPreferredSize ( ) . height ) ; validate ( ) ; return true ; } else throw new IllegalArgumentException ( "parentCom or contentCom is null!" ) ; }
reset location of this dialog and sync to its parent .
