How do I get tooltips to activate on a JLayer-covered JComponent?

I have a Java class that extends JTextField and covers it with a JLayer (new Java 1.7 feature) in order to display custom graphical effects in certain conditions. Without the JLayer it is easy enough to add a tooltip using setToolTipText(String). But with the JLayer in place, nothing happens when I hold my mouse over the box. Perhaps it is blocking the mouse-over event? I also tried calling setToolTipText() on the JLayer object itself but it didn't make any difference. So how can I get the tooltip to work?

Answers


Did you try overriding getToolTipText and return getView().getToolTipText()? Doubt it will help though.


Need Your Help

IIS hosted WCF services and AppDomains

c# .net wcf

I have several WCF RESTful web services which are used to perform long-running tasks. They are hosted under IIS as different applications inside an IIS web site (and application pool is the same). ...

Does finally completely execute if an exception is thrown within finally block

java exception bufferedreader finally

so I have a bit of code here and I'm not sure entirely how it would react in the event that the reader.close() method throws an exception.

About UNIX Resources Network

Original, collect and organize Developers related documents, information and materials, contains jQuery, Html, CSS, MySQL, .NET, ASP.NET, SQL, objective-c, iPhone, Ruby on Rails, C, SQL Server, Ruby, Arrays, Regex, ASP.NET MVC, WPF, XML, Ajax, DataBase, and so on.