question: private static boolean isTextObscured ( JComponent c , String s ) { Graphics g = c . getGraphics ( ) ; FontMetrics fm = g . getFontMetrics ( c . getFont ( ) ) ; int sw = fm . stringWidth ( s ) ; return ( sw > c . getWidth ( ) ) ; }
target:  Check if any label text is obscured.