tooltip hides behind windows taskbar

A discussion forum for JFreeChart (a 2D chart library for the Java platform).
Locked
karthikasok
Posts: 11
Joined: Thu Jul 13, 2006 11:38 am

tooltip hides behind windows taskbar

Post by karthikasok » Fri Mar 02, 2007 5:51 am

When i have my windows taskbar on the right side on my screen and when I move over a point to view the tooltip, the tool tip appears only partially. The other part of the text hides behind the taskbar.

Is there any way to view the tooltip fully?.

I searched for this and found this in Sun Developers Forum
http://forum.java.sun.com/thread.jspa?t ... ID=9442861

but where do i find the method public
Point getToolTipLocation(MouseEvent event) {
}

Is there any easy way?

Thanks in advance

david.gilbert
JFreeChart Project Leader
Posts: 11734
Joined: Fri Mar 14, 2003 10:29 am
antibot: No, of course not.
Contact:

Re: tooltip hides behind windows taskbar

Post by david.gilbert » Fri Mar 02, 2007 5:59 pm

karthikasok wrote:but where do i find the method public
Point getToolTipLocation(MouseEvent event) {
}
It is defined in Swing's JComponent class. You could override the method by subclassing ChartPanel and providing a new implementation...I'm not exactly sure how to go about choosing a location for the tooltip though.
David Gilbert
JFreeChart Project Leader

:idea: Read my blog
:idea: Support JFree via the Github sponsorship program

karthikasok
Posts: 11
Joined: Thu Jul 13, 2006 11:38 am

Post by karthikasok » Tue Mar 06, 2007 6:34 am

Thanks David.
I have overridden the method and it works fine for me.

Locked