{
final FeatureState fs = example.getFeatureState ();
final ImageIcon fsIcon = fs.getIcon ();
final WebLabel featureState = new WebLabel ( fsIcon );
TooltipManager.setTooltip ( featureState, fsIcon, fs.getDescription (), TooltipWay.up );
featureState.addMouseListener ( new MouseAdapter ()
{
@Override
public void mousePressed ( final MouseEvent e )
{
owner.showLegend ( featureState, fs );