Thank you for visiting the BlackBerry Support Community Forums.
BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)
BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.
"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."
- Kevin Michaluk, Founder, CrackBerry.com
Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.
01-16-2009 06:44 PM
This is my first attempt at development for the BB storm, and I'm using JDE 4.7.
I started with an Hello World application I found and I modified it to add a simple button that says RED. When clicked I wanted the screen background to turn RED and change the button to say BLUE, when that is clicked it turns BLUE and changes the button back to RED again.
I implement this using a standard ButtonField listener (which I call bhandler in my code). The program kind of works, with the only weird effect on the simulator being that when I click on the button, the background color does change but a small menu appears. Anyone else seen this menu issue? I'm not expecting to see a menu and I haven't coded anything to ask for a menu to appear when I click this button.
Here is my source code. The handler is in bold text. Note that the blog messes with the code so it might be changed slightly by the smileys... Any answers as to why I see a menu would be most appreciated.....thanks.
Solved! Go to Solution.
01-16-2009 07:32 PM
Thank you so much!
I just tried it and that solved it. I was wondering how to use that second field. How events are processed (obviously from front to back) is something I'm unfamiliar with this GUI yet. I'll have to look at these flags some more to see how these events pass from screen to screen or field to field.
Thanks again. Problem solved. I gave you the Kudos :-)