Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Developer
dognose
Posts: 51
Registered: ‎11-27-2008
My Device: Not Specified
Accepted Solution

cannot find symbol : class TouchEvent

hello.

 

I want my application to respont to some touchgestures (SWIPE_EAST and SWIPE_WEST for now...)

i found a nice example on how to this right here: http://na.blackberry.com/eng/deliverables/5820/Respond_to_a_slide_down_motion_508152_11.jsp

 

The problem is, that importing the needed classes dont work for me...

 

// Gesture handling import net.rim.device.api.ui.TouchEvent; import net.rim.device.api.ui.TouchGesture;

 

 

results in the error:

 

cannot find symbol
symbol  : class TouchEvent
location: package net.rim.device.api.ui
import net.rim.device.api.ui.TouchEvent;

 

what am i doing wrong here?

 

dognose

Please use plain text.
Developer
RexDoug
Posts: 4,764
Registered: ‎07-21-2008
My Device: Not Specified

Re: cannot find symbol : class TouchEvent

You did not mention what version of the JDE you are using. TouchEvent only appears in JDE 4.7. If you are trying to use an earlier version, then you will get this error.

Please use plain text.
Developer
dognose
Posts: 51
Registered: ‎11-27-2008
My Device: Not Specified

Re: cannot find symbol : class TouchEvent

okay thanks for that hint.

 

i looked up my JDE version, and it is 1.6.0_11 . So im going to get a newer version

 

thx again

 

dognose

Please use plain text.
Developer
dognose
Posts: 51
Registered: ‎11-27-2008
My Device: Not Specified

Re: cannot find symbol : class TouchEvent

ups sry, big "bug" :-)

 

this is my JDK-Version.

The JDE i installed is 4.6 ... But where can i get the newer one ?

(downloaded it 2 days ago from blackberry.com...)

 

dognose

Please use plain text.
Developer
RexDoug
Posts: 4,764
Registered: ‎07-21-2008
My Device: Not Specified

Re: cannot find symbol : class TouchEvent

Same place, look for "JDE 4.7 (Storm)"
Please use plain text.
Developer
dognose
Posts: 51
Registered: ‎11-27-2008
My Device: Not Specified

Re: cannot find symbol : class TouchEvent

Found it :-)

 

i swear 2 days ago it wasnt there :-)

Please use plain text.