public MutableAttributeSet url(String url){
  SimpleAttributeSet urlStyle=new SimpleAttributeSet();
  StyleConstants.setUnderline(urlStyle,true);
  urlStyle.addAttribute(HTML.Attribute.HREF,url);
  return urlStyle;
}

public MutableAttributeSet url ( String url ) { SimpleAttributeSet urlStyle = new SimpleAttributeSet ( ) ; StyleConstants . setUnderline ( urlStyle , true ) ; urlStyle . addAttribute ( HTML . Attribute . HREF , url ) ; return urlStyle ; }
make a link style for the given url .
