private int reverseAlignForBidi(Component c,int align){
  if (c.isRTL()) {
switch (align) {
case Component.RIGHT:
      return Component.LEFT;
case Component.LEFT:
    return Component.RIGHT;
}
}
return align;
}

private int reverseAlignForBidi ( Component c , int align ) { if ( c . isRTL ( ) ) { switch ( align ) { case Component . RIGHT : return Component . LEFT ; case Component . LEFT : return Component . RIGHT ; } } return align ; }
reverses alignment in the case of bidi
