How to use a good ObjectChoiceField

I use ObjectChoiceField, but by default that objectchoicefield is not beautiful, who can help me for a code, thanks

Hi I have modified your code this way to check the focusChange and editing text.

    class MyChoiceField extends ObjectChoiceField
    {
        boolean onFocuss;
        MyChoiceField (String label, Object[] choices,int choice,long style)
        {
            super(label,  choices,choice,style);

        }

        public void paintBackground(Graphics graphics)
        {
            if(onFocuss)
            {
                graphics.clear();
                int color = graphics.getColor();
                graphics.setColor( 0x00FF00 );
            }
            else
            {
                graphics.clear();
                int color = graphics.getColor();
                graphics.setColor( 0x000000 );
            }
        }

        public void onFocus(int dir)
        {
            onFocuss = true;
            invalidate();
        }

        public void onUnfocus()
        {
            onFocuss = false;
            invalidate();
        }
    }

Tags: BlackBerry Developers

Similar Questions

  • How to use the Print Screen function?

    I've seen various descriptions of how to use the print screen function.

    It would be nice to actually tell one that works.  None have worked for me.

    [Fn] and Prt SCr does not work.

    CTRL and Prt SCr does not work.

    CTRL, Alt, and Prt SCr does not work.

    [Fn], Ctrl and Prt SCr does not work.

    If anyone knows the correct method to activate the screen capture function which would be a good thing.

    From the looks of things, HP has a big problem with this function.

    Here's a microsoft articleon the use of the screenshot function.

    This should answer your questions.

    Thanks for taking a peek.

  • How to use the stock firmware to fix your Tablet this stock in recovery mode

    Help plssss...

    Where I can download stock firmware for my Hp Slate 7 HD 3403ex and how to use it.

    Hi there @rangothegreat

    Welcome to the Forums of HP Support! It's a good place to find the help you need, so many other users, the HP experts and other members of the support staff. I understand that you are looking for a firmware image for your tablet. I'm happy to help you.

    The support page for your model contains images of catering for Android Jelly Bean and can be found here:

    7 HD 3403ex Tablet Slate from HP

    If you have already installed a newer version of Android like KitKat, these images will not work for you. See the post following @WyreNut referring to this possible problem.

    4.4.2 android update failed for the HP Slate 10 HD

    If this applies to you, then please use the following http://www.hp.com/contacthp and create a folder for your question and contact HP. If you do not live in the United States / Canada, please click on the link below to get contact information for your region.
    http://WWW8.HP.com/us/en/contact-HP/WW-phone-assist.html

    I hope this helps.

  • How to use PowerPhotos to perform a migration of Aperture for photo

    We are running Yosemite and openness. We have about 10 Aperture libraries, some libraries have about 6000 images.

    We have the Photos app on our Mac but don't use it yet.   What workflow we should follow to upgrade to El Capitan and migrate from Aperture for the Photos using PowerPhotos.

    I have been informed that we should first upgrade to El Capitan.   But I don't know how to use PowerPhotos to help us in this migration.

    I read on the PowerPhotos site below.

    "If you have a lot of existing iPhoto or libraries to open that you want to migrate Photos, PowerPhotos will help automate your migration if you do not have to spend time to care for children of this long process."

    It's a good question for FatCat (authors of PowerPhotos) support or study Chapter 7 of their manual - https://www.fatcatsoftware.com/powerphotos/Help/table%20of%20contents.html

    LN

  • Satellite M70: How o use Atheros Wireless Lan Driver?

    Hello
    Since I bought my Satellite M70, I had the same problems described by many on the forum and to keep band from b instead of g and the ability of its 54 Mbit connection.

    I updated the intel lan driver and I am now using intel Pro/set utility driver.
    Last week, I got a message from toshiba for download the latest Atheros driver which is supposed to improve connectivity.

    The problem is that to happen once I installed Atheros driver nothing: there is nothing that I can do with the atheros utility, and I can still only go from Intel or Windows to manage the wireless card.

    Does anyone have a good idea on how to use the atheros driver?
    Thanks for your help
    Jean-Paul
    France

    Hi, Jean Paul

    I never had any message of the Toshiba who advise me to update all drivers.
    However, I don't know what your laptop is the WLan card but you can't use an Atheros driver on the Intel WLan card for example.
    If the Intel WLan card has been installed on your laptop, you must use the Intel Wlan drivers.
    Check in the Device Manager you what Wlan laptop using the card you.

  • How to use the adapter wireless Satellite C660D?

    Hello world!

    Crazy us looking for the adapter wireless Satellite C660D-164... is there an integrated? or do I have to buy an external? Can not know how to set up a wi - fi and bluetooth connection. The manual is not descriptive.

    Installed all the drivers form the site.

    Pleas help ASAP.

    As far as I know all the portable toshiba have too much especially the bluetooth and WIRELESS network card.
    Use of WLAN is very simply. Thing the most important ist wireless network adapter must be installed and activated correctly.

    In the document s user manuals, you can find good description how to use the WLAN.

    The question is: do you use your laptop with the original operating system preinstalled that you got with it or you use own preloaded?

  • How to use Nokia BH-501 with my laptop

    I just bought this headset, and I used it on my phone, no worries. High quality and good battery life.
    Now, I would like to use Skype on my computer but when I connected automatically, it's headphone only. So I had to connect in the headset or handsfree (what is the difference?)
    Poor quality have both these protocols (?).

    How can I get good quality with the microphone? I know its possible because I can do with my phone...

    Is there a config file, can I change to force a different protocol (the one that uses my phone to connect to the headset) for best quality?

    If you prefer to control your headset by the software, you must use hands-free (HFP) instead of the profile headset (HSP). HFP is bidirectional, which means the works of audio stream in both directions which is required for communication. The downside is that it uses low quality as a normal phone. The A2DP profile is for music, but it is being. This means that you can listen to just, so your microphone does not work.

    The quality of the headphone is OK, but you should keep in mind that a good VoIP communication also depends on other components (for example, the network connection) that you do not experience if you use a mobile phone. It is not possible to connect two profiles A2DP and HFP, at the same time due to bandwidth issues, so you should use one that suits your current needs.

  • How to use anroid

    Mr President

    pls tell me how to use anroid vesion in my hp touchpad

    Hello and welcome to the HP support community!

    Google is your friend!  Search for "How to install Android on HP Touchpad" results in many successes that are videos from YouTube and full step by step guides such as this page at rootzwiki.

    It shows how to install either CM9 (Android Ice Cream Sandwich) or CM10 (Android Jelly Bean).

    CM10 is the newer of the two and would be my suggestion to install.

    Good luck!

    WyreNut

  • Re: How to use the webcam on my C50-A-19U Satellite?

    I don't know how to use the webcam on my Satellite C50-A-19U.
    Help, please.

    Message was edited: assignment has been translated

    Hello

    I assume that you are using the original version of Windows pre-installed so good description how to use build-in webcam, you can find here.
    Check it out.

  • Satellite U300 - how to use the recovery disk?

    I inserted the recovery disc 1 and then restarted my computer, but nothing happened.
    I really need to fix my cause cell it's time to review!

    Does anyone know how to use the recovery disk or affecting function press when the laptop starts to use the programmed recovery?

    Thank you!

    Hello!

    If you have inserted the recovery disc you must only start her everything that s!

    I m not sure but I think you can go into the advanced boot menu if you press F12. Alternative change you the boot priority in the BIOS. You can access BIOS by pressing F2.

    Good bye

  • Qosmio F20: How to use the microphone internal?

    Good, my second and last question (I hope).
    The F20 was a "microphone".
    How to use it?
    Does this mean that I will not need an external microphone at any point?

    Hello

    It would be very interesting to know the name of your Qosmio F20 - xxx, because there are many F20 with a different hardware configuration.
    I found some Qosmios F20 without the internal microphone on the Toshiba site.
    In this case, you can only use an external microphone.

    But if you laptop should internal microphone, it should be possible to enable this feature under control panel sound and Audio Devices tab, Advanced button Volume.

  • How to use Apple Watch to take weight?

    A lot of people talking about how to use Apple Watch to lose weight, but how about the point of taking weight! Does anyone know how to use Apple Watch to take weight? It can track calories from the body, not the calories to burn track!

    Thank you.

    Yes, the shows follow the calories you burn. And it's good information, no matter what you try to do it. Apple Watch is not really to lose or gain weight. His focus is on getting in shape. It is not follow the weight at all. It follows the activity. Even if you want to take the weight, you still want to be active and in good health. Consult a nutritionist for what you should eat. Download an app like MyFitness Pal, which will allow you to set a goal and track your consumption.

  • How to use the Go buyback program?

    There is a program that restores your computer exactly what he had on it a while ago. I've used it before, but I don't remember how I got him. Can someone tell me the name of the program if it has changed, or how to access it?

    http://Windows.Microsoft.com/en-us/Windows-Vista/what-is-system-restore

    What is system restore?

    http://www.bleepingcomputer.com/tutorials/tutorial143.html

    A very good tutorial on how to use the system restore is at the link above.

    Restore point:

    Do Safe Mode system restore, if it is impossible to do in Normal Mode.

    Try typing F8 at startup and in the list of Boot selections, select Mode safe using ARROW top to go there > and then press ENTER.

    Try a restore of the system once, to choose a Restore Point prior to your problem...

    Click Start > programs > Accessories > system tools > system restore > choose another time > next > etc.

    See you soon.

    Mick Murphy - Microsoft partner

  • How to use camera integrated in my inspiron 518 desktop?

    I don't have an instruction book with my inspiron 518 desktop computer.  It has a camera built into the top of it, but I have no idea how to use.  Would like to know - how...

    I don't have an instruction book with my inspiron 518 desktop computer.  It has a camera built into the top of it, but I have no idea how to use.  Would like to know - how...

    =========================================
    You can download the manuals for your inspiron 518 desktop...
    (I have not found webcam mentioned in 518 docs)

    Dell Inspiron 518/519 manual
    http://support.Dell.com/support/eDOCS/systems/insp518/en/index.htm

    The following Dell Document provides instructions for a WebCam...
    the same instructions apply to your computer.

    Dell XPS M1530
    http://support.Dell.com/support/eDOCS/systems/xpsm1530/en/OM/PDF/RU335A02MR.PDF
    (Webcam info starts on page 69)

    Good luck... John Inzer - MS - MVP - digital media experience

  • HP elitebook 8530p: how to use finger locking

    How to use finger locking and what software download please explain step by step

    Welcome to the Community Forum of HP.

    I do not have a business system, nor use the software Client Security - the program can always be called ProtectTools on your Windows version.

    I can offer you the following Pages in your computer support - white paper guide is easy to read and easy to understand.  The document should give you a good understanding of the features of your program and may allow you to use the Client Security program on your computer.

    HP ProtectTools 2010 security software

    A couple of notes:

    Pages 12-13

    Pre-seed security: often people who are locked out the pre-start safety are the owners of computers.  Either ware to outsmart yourself.  Think before you implement this "layer".  Unless you live in a dangerous environment or you are involved in a level of national or international espionage, you shouldn't pre-boot security, which is easy to break and could end up you locking.

    SpareKey: Consider this insurance.  Some people forget to do.  It could save your back later.  To do this.

    =============================================

    Click on the thumbs-up Kudos to say thank you!

    And... Click on accept as Solution when my answer provides a fix or a workaround!

    I am happy to provide assistance on behalf of HP. I do not work for HP.

Maybe you are looking for