private static Component createMark(final WebLookAndFeelDemo owner, final Example example) { final FeatureState fs = example.getFeatureState(); 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(MouseEvent e) { owner.showLegend(featureState, fs); } }); return new CenterPanel(featureState, true, true); }