MouseWheel problem

Hi at all,

I’m using a JScrollBar because I need a particular scroll, and for make it work,I have incapsulate some object like this:
JScrollPane–>JPanel–>servoy-tab-panel–>form.

All work fine but I want add a new listener: mouseWheel.
To do this I have done a listener:

var listenerScrollW = new Packages.java.awt.event.MouseWheelListener({ mouseWheelMoved:ScrollChangeV});

where “ScrollChangeV” is the function that I want Invoke.

Now I don’t know where I have to add this listener…I have tried to add it into the
JScollPane and JPanel but the event isn’t invoked;I think this happens because the focus is caught by the form,by the tabpanel or by the field;
I suppose this because if I add the listener to the JScroolBar than all work fine but I don’t want click on the JScroolBar to catch the focus.
Have you any suggestion in wich container I can add this listener?

Thanks in advance

Marco

Noone have some Idea? :)

Regards

Marco

somewhere in the hierarchy of the tabpanel/form we there is already a scrollpane i believe
thats why you dont get any event in yours.

you have to try to find that one.