find out if text of JLabel exceeds label size
The ellipsis is added by the label’s UI delegate, typically a subclass of BasicLabelUI, as part of it’s layout and preferred size calculation. The method layoutCL() may be overridden to examine the geometry, as shown on this example. As a practical matter, I’d ignore the elision and show the full text in a tool tip.