notification of tooltip display/hide
hwaiteDec 15 2010 — edited Jan 8 2011I'd like to use a 'text to speech' engine to read tooltips as they are displayed. I further seek to suppress dismissal of the tooltips until after their text has been read. I can probably figure out the TTS stuff but am having trouble deducing when tooltips are made visible. Is there some way to register a global listener that receives an event whenever tooltips are shown/hidden? javax.swing.ToolTipManager is pretty locked down so there's not much opportunity to tap into "out of box" code.
I'm looking for a solution that works in JDK 5 and won't require additional code every time I add a new component [class]. I'm also hoping to avoid brute force traversal of the component hierarchy but maybe that's just being greedy...