Hi Andres and thanks... your aid is precious! I've implement your
suggest substituting
elt = document.getElementById("dragGroup");
with
elt = document.getRootElement();
to get root element from a generic document. Now It works well, but
there are some problems.
* In this way I select only eleme
Hi Francesco:
I have found some possible situations:
First, on the "svgCanvas.addSVGLoadEventDispatcherListener" you are
calling "registerListeners()", and in this method you are still calling
the "onNewClickAction()" method.
root.addEventListener( SVGConstants.SVG_MOUSEDOWN_EVENT_TYPE
Thanks Andres! I've tried to use your suggests without results. I post
you my implementation of DnD. Please check this source code.
public class DnD {
public static void main(String[] args) {
JFrame f = new JFrame("Batik");
MouseEvent2 app = new MouseEvent2(f);
f.getConten
Hi:
The first possible error I detect is in the method registerListeners().
You modified the way the EventListeners are added to the element.
t.addEventListener("click", new OnClickAction(), false);
The method needs to be called OnClickAction(), since you are overiding
the OnClickAction(
Thanks Andres Toussaint! I'm not able and I've use your suggests without
result. Please check this source code, it's my implementation of DnD.
public class DnD {
...
SketchPanel svgCanvas = new SketchPanel(); // A class that extends
JSVGCanvas whit a method to draw a selection box
thanks for your reply Andreas! Try it and post the results!
--
Email.it, the professional e-mail, gratis per te: http://www.email.it/f
Sponsor:
Clicca qui: http://adv.email.it/cgi-bin/foclick.cgi?mid=&d=14-5
-
To unsubsc
Hi,
Since i had invested quite some time with this issue and have finally
done it, thanks to a wide variety of sources and help from other user“s
replies to the forums, i am submitting my solution to two options of
DnD situations.
DnD options:
1. ) from a JComponent, (like a JTree) into a JSV