String (MouseEvent evt) { int pos = viewToModel(evt.getPoint()); if (pos >= 0) { HTMLDocument hdoc = (HTMLDocument) getDocument(); javax.swing.text.Element e = hdoc.getCharacterElement(pos); AttributeSet a = e.getAttributes(); SimpleAttributeSet value = (SimpleAttributeSet) a.getAttribute(HTML.Tag.A); if (value != null) { String objectPackage = (String) value.getAttribute("qualifiedname"); if (objectPackage != null) { return objectPackage; } } } return null; }