Tooltip is causing popups to go behind the main screen, how can I fix this?
0 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   nazli_shahi
Posted On:   Tuesday, December 16, 2008 03:32 PM

Hello, I'm facing a tooltip issue at work which I can't seem to reproduce in my stand-alone codes. Basically, I have a panel that contains a table with headlines. When I move the mouse through the headlines, if any popup or window is open on the main application, the tooltip causes it to go behind the app. The tooltip is implemented using the setToolTipText(String str) method in a JTable's renderer, which eventually extends DefaultTableCellRenderer; when I comment out this line, the problem seems to go away, and when I put it back I see the problem happening again. Here's what I've tried so far: 1) Removed setToolTipText() line in the renderer code, and replaced it with getToolTipText(MouseEvent e) in the table class, itself.    More>>

Hello,


I'm facing a tooltip issue at work which I can't seem to reproduce in my stand-alone codes. Basically, I have a panel that contains a table with headlines. When I move the mouse through the headlines, if any popup or window is open on the main application, the tooltip causes it to go behind the app. The tooltip is implemented using the setToolTipText(String str) method in a JTable's renderer, which eventually extends DefaultTableCellRenderer; when I comment out this line, the problem seems to go away, and when I put it back I see the problem happening again. Here's what I've tried so far:


1) Removed setToolTipText() line in the renderer code, and replaced it with getToolTipText(MouseEvent e) in the table class, itself.


2) Removed setToolTipText() line and tried using a JWindow instead in the renderer, where I set the JWindow text to the renderer's value.


I know that it's the tooltip that causes the problem, and the two alternatives produce the same problem, and I don't know what else I should try.


Does anyone have any suggestions? I've been stuck with this assignment for over a week now and the deadline has passed. If anyone has any suggestions or ideas to offer, I'd very much appreciate it.


Thanks in advance!


*~Nazli

   <<Less
About | Sitemap | Contact