0
votes

I have problem when I want to access events. I already copied the resource files (nativej2me.res) under src directory but still the events are disabled within my project.

Can anyone help me how to arrange the resources so it enables the vents..?

Thanks

2

2 Answers

0
votes

Don't move that resource file. Its not the place for it.

I'm guessing you created a handcoded application where GUI builder events aren't supported. You need to create a GUI builder project when creating a new project.

That's a GUI builder project (notice the visual not manual in the brackets) enter image description here

0
votes

Just for the googlers out there:

Have a look in the file codenameone_settings.properties - in there you'll find the property userClassAbs=something/StateMachine.java

Its an absolute path and it was showing the wrong directory. After fixing this I was able to add Events in the Designer again.