If you want the tooltip to be above your widget, the line could just be 
     return new Point(0, -20);
Told you it was simple :-). If you wanted to be fancy, you could calculate the 
negative value based on the height of the Tooltip font. 

tom 

> On Jan 29, 2018, at 8:18 PM, José J. Rodriguez <[email protected]> 
> wrote: 
> 
> Thomas Wolf wrote:
>> Turns out overriding getTooltipLocation() is really easy - my main concern 
>> was that if I overrode that method with a fixed location, I'd lose Swing's 
>> fancy calculations that prevent the tooltip from being cut off by the edge 
>> of the screen.  Turns out that was unfounded - it still does that.  So my 
>> overridden method is a single line - not bad at all.
> 
> I'd be interested to see that line, got a couple of old applications to fix, 
> lol.
> 
> Joe1962
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
> 
> For further information about the NetBeans mailing lists, visit:
> https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to