Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

notification of tooltip display/hide

hwaiteDec 15 2010 — edited Jan 8 2011
I'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...
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 5 2011
Added on Dec 15 2010
13 comments
527 views