947948949950951952953954955956957
{ x = (int)(rect.getWidth() - rectStatic.getWidth()); y = topGap + (int)(rect.getHeight()/2 - rectStatic.getHeight()/2); } rectStatic.move((int)rect.getX() + x, (int)rect.getY() + y); // +----+ // |Text| // o----+ // Leftmost