private void setText(JTextPane textPane, String text) {

		String html = "<html><nobr>" + text;
		textPane.setText(html);

		//
		// Hack Alert!: We've run into scenarios where changing the text of this component 
		//              causes the entire component to paint no text.  For some reason, the 
		//              component will work correctly if it has a non-zero size border installed.
		//              Also, if we call getPreferredSize(), then it will work.
		//
		textPane.getPreferredSize();
		getPreferredSize();
	}
Uses the given text to create a link the user can click.
@param text the text
@param linkActivatedCallback the callback that will be called when the link is activated
Ghidra/Framework/Docking/src/main/java/docking/widgets/GHyperlinkComponent.java