Please consult the program once
See once this program...
When I press the button will not change the color of the string...
package com.menuitems; import net.rim.device.api.ui.Color; import net.rim.device.api.ui.Field; import net.rim.device.api.ui.FieldChangeListener; import net.rim.device.api.ui.Graphics; import net.rim.device.api.ui.component.RadioButtonField; import net.rim.device.api.ui.component.RadioButtonGroup; import net.rim.device.api.ui.component.RichTextField; import net.rim.device.api.ui.component.SeparatorField; import net.rim.device.api.ui.container.HorizontalFieldManager; import net.rim.device.api.ui.container.MainScreen; import net.rim.device.api.ui.container.VerticalFieldManager; public class MenuScreen extends MainScreen { String string = "color will changed when u press the button"; HorizontalFieldManager hFieldManagerTop; VerticalFieldManager vFieldManagerBottom; public MenuScreen() { final MyTextFiled myTextFiled ; hFieldManagerTop = new HorizontalFieldManager(); vFieldManagerBottom = new VerticalFieldManager(); myTextFiled = new MyTextFiled(); myTextFiled.setText(string); RadioButtonGroup radioButtonGroup = new RadioButtonGroup(); final RadioButtonField radioButtonField = new RadioButtonField("red", radioButtonGroup,true); final RadioButtonField radioButtonField1 = new RadioButtonField("green", radioButtonGroup, false); final RadioButtonField radioButtonField2 = new RadioButtonField("blue", radioButtonGroup, false); radioButtonGroup.setChangeListener(new FieldChangeListener() { public void fieldChanged(Field field, int context) { if(radioButtonField.isSelected()) { myTextFiled.setColor(Color.RED); } else if (radioButtonField1.isSelected()) { myTextFiled.setColor(Color.GREEN); } else{ myTextFiled.setColor(Color.BLUE); } } }); hFieldManagerTop.add(myTextFiled); vFieldManagerBottom.add(radioButtonField); vFieldManagerBottom.add(radioButtonField1); vFieldManagerBottom.add(radioButtonField2); add(hFieldManagerTop); add(new SeparatorField()); add(vFieldManagerBottom); } } class MyTextFiled extends RichTextField{ int color ; protected void paint(Graphics graphics) { graphics.setColor(color); super.paint(graphics); } void setColor(int color){ this.color = color; } private int getColor(){ return this.color; } }
class MyTextFiled extends RichTextField{ int color ; protected void paint(Graphics graphics) { graphics.setColor(color); super.paint(graphics); } private void setColor(int color){ this.color = color; invalidate(); } private int getColor(){ return this.color; } }
Try this one.
------------------------------------------------------------------------------------
Kudo press to say thank you to the developer.
Also, press accept it as a button when you got the Solution.
Tags: BlackBerry Developers
Similar Questions
-
Software device driver has not been installed successfully. Please consult the manufacturer of your device to help get this device installed.
Failed. Generic USB hub. I went to the Device Manager and clicked on update, but it did not work. Can you help me.
original title: DEVICE DRIVER has NOT been INSTALLED successfully.
Go to your computer manufacturer's support web site and search for the Windows Vista drivers for your specific model number.
If there are drivers Windows Vista, then to download to a folder on your hard drive and install all of them, in starting with the card mother/chipset drivers SATA, LAN, Audio, USB, Etc., and so on.
List of computer manufacturer support sites:
http://Windows.Microsoft.com/en-us/Windows/help/contact-support/computer-manufacturersIf you have an Intel motherboard, you can try the Intel driver update utility: http://www.intel.com/support/detect.htm?iid=dc_iduu
Tips for solving common driver problems
http://Windows.Microsoft.com/en-us/Windows-Vista/tips-for-fixing-common-driver-problemsGraphics/video drivers:
Check the download site of the manufacture of the graphics card for the latest Windows 7 / Vista drivers for your card.
ATI: http://support.amd.com/us/gpudownload/Pages/index.aspx
NVIDIA: http://www.nvidia.com/Download/index5.aspx?lang=en-usJ W Stuart: http://www.pagestart.com
-
Cannot hear sound when it is online and when trying to install flash player then it show ATL file DLL missing, please reinstall the program
Hello
We are pleased to hear that you were able to find a solution to the question and I thank you for the information provided. Do not hesitate to contact us, in the case where you face other problems in the future.
-
HelloW!
Please help my.
After the installation of Internet Explorer on my computer
I can't open the Organizer in Photoshop Elements 10 (Russian version) on my computer.
By the Organizer message appers opening attempt "it is not possible to run DirectX. Check please if the program is installed on your system.
I checked my computer - computer installed DirectX11.
Before that time I have hade any problems with the opening of the Organizer
Greetings from sorts
-
I face a problem in photoshop cc 2015. When I close a tab, then a pop - up massage a problem caused the program to stop working correctly. Please close the program. solve this problem
Try to uncheck 'use graphics processor' in preferences and restart Photoshop.
-
After installing the program using creative cloud on a Windows computer, the program (por first cs6) does not appear in my program list.
Thanks for your help!
This is the reason why it does not appear in the list of programs.
Applications like After Effects, Premiere Pro are compatible with 64-bit computers only.
However, you can install the CS 4 version that is compatible with 32-bit computers.
Reference:
-
Creative Cloud Setup has stopped working. Please close the program.
HELP PLEASE! I'VE USED THE CLEANING TOOL, IT STILL DOES NOT WORK!
Follow the procedure below and check:
Basic Checklist: [optional]
Make sure that Adobe Creative Cloud is not listed in the control panel. If the list delete.
You can use Microsoft Fix tool to remove. If Adobe Creative Cloud is listed.
http://go.Microsoft.com/?linkid=9779673
Step 1:
Open the c: drive and navigate to C:\Program Files (x 86)------\Adobe " common files".
Open the Adobe folder and delete folders named Adobe Application Manager and OOBE.
Step 2:
Navigate to C:\Program Files (x 86) \Adobe.
Open Adobe file and if present the file to remove Adobe Creative Cloud . [* important]
If you are unable to remove, simply rename it to Adobe Creative Cloud-old.
Step 3:
Press Windows button (located between Ctrl and Alt buttons) with the key R together at once, you will get a command window.
Type below command and press the enter"" key.
AppData
Then go to the Local > Adobe.
Open the Adobe folder and delete folders named AAMUpdater and OOBE.
Step 4)
Temporarily disable anti-virus and firewall.
Step 5)
Click on the link below and download Adobe Application manager and install the same:
http://download.adobe.com/pub/Adobe/creativesuite/CC/Win/ApplicationManager9.0_all.exe
Once the installation is complete, look for the icon of Adobe Application Manager launch on desktop and double-click it.
It will start the update process. and he should get updated to Adobe Creative Cloud app.
-
Check on a friends computer; It can run internet explore unless she added as an administrator. you try to run any .exe gets this pop asking what program to run this title? It could be an association of .exe that is messed up, or is it probably some strange virus? I tried to install IE9, I was able to download but are unable to run.
Start here (especially if you are not familiar with the UAC in Vista & Win7)-online http://windows.microsoft.com/en-US/windows-vista/User-Account-Control-Overview
-
Error message Windows Vista "BSvc processor stopped working, please close the program.
Nuisance error message pop up every 10 minutes, I did an analysis complete and have disabled incident reports, but the message persists to arise. How it can be stopped.
Hey Gary
You could try to clean boot your device, to see if a service is the cause if it is, the error must occur is no longer after it is initialized to clean. A guide to clean the boot can be found here
I also read some people removed some tweaker pc utilities pc or pc performance enhancing software to their computer and that seems to work as well.
I would like to now if the error persists after a clean boot
Yuri
-
Hello
Since I ugraded to Windows 10, CS5.1 Illustrator and Photoshop CS5.1 raise the warning above to start.
For Photoshop, I found a solution (solution?), published in the Photoshop renamed ADmPlugin.apl to ADmPlugin.apl.bak in the macros folder Photoshop\Required\Plug.
:It does not work for Illustrator: when I rename the equivalent file in the Illustrator file, no longer, start saying "plug-ins required missing: Plugin ADM, BRS pencil tool and expands...
Interestingly, InDesign has no problem at all.
Any ideas how to fix? Reinstall did not help.
Kind regards
Julian
Problem solved
This thread finally has the solution: ACTIVATE the Windows Firewall during installation. Don't ask why...
-
I rebooted, shut everything off and ran as administrator and it stops at the same place every time.
Uninstall anything cc which can be installed.
clean a (http://www.adobe.com/support/contact/cscleanertool.html)
then install the application of cc, Download Adobe Creative Cloud apps desktop | CC free trial Adobe
-
Code error "cd device driver is not installed, please reinstall the program.
I bought a new computer with Windows '8' that I have photoshop elements 5.0 and it took to install it fine, but I get the error code when I try to save my photos.
try running in compatibility mode.
-
Somehow my MS Paint program can not handle the functions copy and paste more. If I paste a chart in the program, once trying to move this chart then painting hangs. After that, everything I do in painting (as a line drawing) causes crash, until I restart my computer, after which the drawing functions operate again. Yet, the problem of the dough rest, always plant the program when I try to copy and paste.
Hi vensar,
1. did you of recent changes on the computer?
2. you receive an error message during the crash?
3. you have any third party photo editing software installed on the computer?
Method 1
It is possible that some third-party programs installed on the computer is causing the problem.
I suggest you put the computer in a clean boot state and check if the painting breaks down.
To help resolve the error and other messages, you can start Windows Vista by using a minimal set of drivers and startup programs. This type of boot is known as a "clean boot". A clean boot helps eliminate software conflicts.
See the link below to learn more about how to clean boot.
How to troubleshoot a problem by performing a clean boot in Windows Vista or in Windows 7
http://support.Microsoft.com/kb/929135
Reset the computer to start as usual
When you are finished troubleshooting, follow these steps to reset the computer to start as usual:
(a) click Start, type msconfig in the search box and press ENTER.
(b) If you are prompted for an administrator password or for confirmation, type your password or click on continue.
(c) under the general tab, click the Normal startup option, and then click OK.
(d) when you are prompted to restart the computer, click on restart.
Method 2
If the above step fails then I suggest that you check in the event viewer to determine the cause of the accident and post back with the details.
What are the information contained in the logs of the event (Event Viewer)?
http://Windows.Microsoft.com/en-us/Windows-Vista/what-information-appears-in-event-logs-Event-Viewer
I hope this helps!
Halima S - Microsoft technical support.
Visit our Microsoft answers feedback Forum and let us know what you think.
-
The other day, I registered the scripting language for SmartWatch in the game of Google.
It is divided into two programs, one is registered as SmartWatch Extension (BitmapCacher) and another is saved as an app (Luarida).
The script starts from a smart phone. Here, I want to start BitmapCacher at the same time as the start script.
The path is not understood even if it considers that BitmapCacher can be launched without the touch of the screen, if Intnent is sent to LiveWare.
Please teach the program code in which the SmartWatch Extension is started without the touch of the screen.
---
By the way, here's a SmartWatch program development discussion forum?
Please teach if there is a suitable advice.
Best regards.
I suggest that you turn to the developer site stackoverflow.com. Looking for a guy named Jerker, I hear he's good at it.
www.StackOverflow.com
-
I was probed to always select "allow", "allow once" or "Block" for an incoming program. I accidentally click "block" and my program worked more! Please explain how I can allow the program to work again?
How can I reverse the error?ConcerningJollyJWithout doubt blocked by any firewall you have installed, that being the review of the cases of your firewall settings that relate to this program
Maybe you are looking for
-
ICloud established nicht works
Windows 10 I have cloud installation: Following Fehlerreport erhalte ich: Your configuration branch eines mountains Fehlers nicht gestartet werden konnte. Fehler: 0x80070005: CopyPSTFoldersToCache Fehler: 0x80070005: CopyFoldersToCache Fehler: 0x8007
-
Tecra A2 used power up after upgrading the hard drive
I have a Toshiba Tecra A2. Hard drive 60 GB factory begins to run out, so I installed a new 160 GB drive. But the system will not power on with the 160GB inside.When I press the power button the AC light goes from green to orange and blinks short sho
-
Tecra M5 - can't change password disk HARD using the security help after recovery?
Unfortunately, this weekend I had to do a lot of 'recovery' of my M5 - PTM51A-0RM05P, with Windows XP SP3. Now nor security help or Toshiba Assist and safety, let me change or remove my HDD user password that I enter on startup. I don't use a BIOS pa
-
cannot remove open windows unnecessary components in Control Panel
system cannot find fp40ext.inf
-
Trial of Streets &; trips does not display all the roads I indicates
Is the trial version 'all up'... .or it lacks some features. I can't seem to view the places I mentioned on my road... .Although I can it be located along the road if I highlight a camping idiviual on the list. How to view along the road