/** * Tells the look and feel to reset some of the values for this component so that it doesn't use * JTextArea's default values. * * <p>DO NOT CALL THIS METHOD YOURSELF! */ public void updateUI() { super.updateUI(); // setLineWrap(true); setWrapStyleWord(true); setHighlighter(null); setEditable(false); LookAndFeel.installBorder(this, "Label.border"); LookAndFeel.installColorsAndFont(this, "Label.background", "Label.foreground", "Label.font"); if (resizeHandler != null) { resizeHandler.componentResized(null); } // update restricted size SizePolicy policy = (SizePolicy) getClientProperty(SizePolicy.class); if (policy != null) { GUIUtils.restrictSize(this, policy); } }