Text::getWidth() Syntax Java Return Text::getWidth() Returns the width of the text. Syntax Java .getWidth() Return double getWidth()