FontMetrics fm = this.frame.getFontMetrics(graphics.getFont()); int titleWidth = rightEnd - leftEnd; String clippedTitle = SubstanceCoreUtilities.clipString(fm, titleWidth, theTitle); FontMetrics fm = this.frame.getFontMetrics(graphics.getFont()); int titleWidth = rightEnd - leftEnd; String clippedTitle = SubstanceCoreUtilities.clipString(fm, titleWidth, theTitle);
Rectangle titleTextRect = this.getTitleTextRectangle(fm.stringWidth(theTitle)); int titleWidth = titleTextRect.width; String clippedTitle = SubstanceCoreUtilities.clipString(fm, titleWidth, theTitle);
FontMetrics fm = this.frame.getFontMetrics(graphics.getFont()); int titleWidth = rightEnd - leftEnd; String clippedTitle = SubstanceCoreUtilities.clipString(fm, titleWidth, theTitle); FontMetrics fm = this.frame.getFontMetrics(graphics.getFont()); int titleWidth = rightEnd - leftEnd; String clippedTitle = SubstanceCoreUtilities.clipString(fm, titleWidth, theTitle);
FontMetrics fm = rootPane.getFontMetrics(g.getFont()); int titleWidth = titleTextRect.width - 20; String clippedTitle = SubstanceCoreUtilities.clipString(fm, titleWidth, theTitle);