Swing - set tooltip location from within LookAndFeel

hi, i need to set the tooltip location for jtextfields but i'm not allowed to change any application code.

so subclassing jtextfield and overwriting gettooltiplocation doesn't work for me.

is there any other way to set the tooltip location from withing my custom lookandfeel?

Gr33tz Goddchen

[318 byte] By [Goddchena] at [2007-11-26 23:19:27]
# 1

There is no simple way to do this.

You need to unregister the text field from the ToolTipManager and then add your own mouse listener.

The you create the tool tip yourself, or use the ToolTipManager to create the tool tip by sending fake mouse events that will cause the tool tip to appear where you want.

Rodney_McKaya at 2007-7-10 14:22:06 > top of Java-index,Desktop,Core GUI APIs...