You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-users@xmlgraphics.apache.org by Morkulth <fq...@hotmail.com> on 2008/04/08 02:53:11 UTC
gettarget() problem
Hello.
I have seen numerous examples on how to select an element from a JSVGCanvas,
all using event.gettarget();
Problem is,im not getting the .gettarget() method.
I use NetBeans, and go to the JSVGCanvas properties, select a method to
apply onmouseclick.
Here is my code :
private void jSVGCanvas1MouseClicked(java.awt.event.MouseEvent evt) {
Element selected = (Element)evt.gettarget;
//my changes here
}
it gives me an error, of not finding the gettarget method.
Note: if i add the listener manually i get the method, but can´t make it to
work.
Thank's for your time.
Filipe
Any ideas?
--
View this message in context: http://www.nabble.com/gettarget%28%29-problem-tp16544408p16544408.html
Sent from the Batik - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org
Re: gettarget() problem
Posted by Morkulth <fq...@hotmail.com>.
Hello.
madprog wrote:
>
> What if you try to call the .getTarget() method ?
>
>
> I get a compilation error :P
>
> Think i might have to cast an java.awt event to a batik one?
>
>
> Paul
>
> Le 8 avr. 08 à 02:53, Morkulth a écrit :
>>
>> Hello.
>>
>> I have seen numerous examples on how to select an element from a
>> JSVGCanvas,
>> all using event.gettarget();
>>
>> Problem is,im not getting the .gettarget() method.
>>
>> I use NetBeans, and go to the JSVGCanvas properties, select a method
>> to
>> apply onmouseclick.
>> Here is my code :
>>
>> private void jSVGCanvas1MouseClicked(java.awt.event.MouseEvent
>> evt) {
>> Element selected = (Element)evt.gettarget;
>>
>> //my changes here
>> }
>>
>> it gives me an error, of not finding the gettarget method.
>>
>>
>> Note: if i add the listener manually i get the method, but can´t
>> make it to
>> work.
>>
>> Thank's for your time.
>>
>> Filipe
>> Any ideas?
>> --
>> View this message in context:
>> http://www.nabble.com/gettarget%28%29-problem-tp16544408p16544408.html
>> Sent from the Batik - Users mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
>> For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org
>
>
>
Ty, Filipe
--
View this message in context: http://www.nabble.com/gettarget%28%29-problem-tp16544408p16557407.html
Sent from the Batik - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org
Re: gettarget() problem
Posted by madprog <ma...@htkc.org>.
What if you try to call the .getTarget() method ?
Paul
Le 8 avr. 08 à 02:53, Morkulth a écrit :
>
> Hello.
>
> I have seen numerous examples on how to select an element from a
> JSVGCanvas,
> all using event.gettarget();
>
> Problem is,im not getting the .gettarget() method.
>
> I use NetBeans, and go to the JSVGCanvas properties, select a method
> to
> apply onmouseclick.
> Here is my code :
>
> private void jSVGCanvas1MouseClicked(java.awt.event.MouseEvent
> evt) {
> Element selected = (Element)evt.gettarget;
>
> //my changes here
> }
>
> it gives me an error, of not finding the gettarget method.
>
>
> Note: if i add the listener manually i get the method, but can´t
> make it to
> work.
>
> Thank's for your time.
>
> Filipe
> Any ideas?
> --
> View this message in context: http://www.nabble.com/gettarget%28%29-problem-tp16544408p16544408.html
> Sent from the Batik - Users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org
>
---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org