@Override
	protected Rectangle getVisibleEditorRect() {
		Rectangle r = getIconsRect();
		if( r == null )
			return null;

		// remove space needed for leading and trailing icons
		int leading = getLeadingIconWidth();
		int trailing = getTrailingIconWidth();
		if( leading != 0 || trailing != 0 ) {
			boolean ltr = isLeftToRight();
			int left = ltr ? leading : trailing;
			int right = ltr ? trailing : leading;
			r.x += left;
			r.width -= left + right;
		}

		// remove padding
		Insets padding = getPadding();
		if( padding != null )
			r = FlatUIUtils.subtractInsets( r, padding );

		// make sure that width and height are not negative
		r.width = Math.max( r.width, 0 );
		r.height = Math.max( r.height, 0 );

		return r;
	}
Returns the rectangle used for the root view of the text.
This method is used to place the text.
flatlaf-core/src/main/java/com/formdev/flatlaf/ui/FlatTextFieldUI.java