myListener = new Packages.java.awt.event.MouseListener({mouseEntered: globals.method1,mouseExited: globals.method2});
elements.mybutton.addMouseListener(myListener);
But since 5.2 this is not working anymore. Is there something changed in the way you can use java packages?
I’m not sure until which servoy version this worked, because it’s an older test solution and I had several upgrades before I noticed the error.
that doesnt work since servoy 4 anymore then (if it did work before…)
there is no such method addMouseListener on such a label, just the properties/methods you see in the solution explorer tree or code completion
if you want to add a listener to it you have to go through a plugin that does this (or unwraps the component for you)
So, in other words, including J2SE packages like explained in the whitepaper by jbader ‘Java for Servoy Developers’ isn’t working at all anymore? (viewtopic.php?f=16&t=9719&p=54737)
that will work just fine for beans
but for servoy elements you cant directly access the java part of it
The adblock guys have a small plugin for that i think, i guess they can give that to servoy-forge so that people wanting to access java properties/methods of servoy elements can use that simple plugin…
jcompagner:
that will work just fine for beans
but for servoy elements you cant directly access the java part of it
The adblock guys have a small plugin for that i think, i guess they can give that to servoy-forge so that people wanting to access java properties/methods of servoy elements can use that simple plugin…