When a tool tip is displayed on a tree and the mouse is moved the tooltip stays visible and the text changes. Is it possible to hide the tool tip and redisplay it when the mouse moves from one item to the next.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Extend
DefaultTreeCellRendererand invokesetToolTipText()as required. The tutorial projectTreeIconDemo2, discussed in Customizing a Tree’s Display, demonstrates the approach.Addendum: You can supply the desired text for each node in a
TreeCellRenderer, e.g.MyRenderer: