FieldManager and background color - how to change the background color FiledManager

I use the following code to navigate

Change the background color of the domain manager. I see the print, but backgorund color FieldManager does not evolve!

FMHorizSingleCont is a FieldManager. Thank you.

final class UserInterfaceScreen extends MainScreen {

private FMHorizSingleCont[10] fmSingContent; // fmsingContent is a field Manager

public FMVerticalContents (){
    try
    {
      numElements = 0;
      currentRow =0; // Row where the focus is
      Background back = BackgroundFactory.createSolidBackground (Color.BLUE);
            ......................

protected boolean navigationMovement(int dx, int dy, int status, int time) {
        if(dy<0){
      if(currentRow != 0)
      {
       currentRow--;
       fmSingContent[currentRow].setBackground(back);
       System.out.println("FMVerticalContents -- dy < 0 !!!");
       invalidate();
      }

    return true;
    }
    else if(dy>0){         

      if(currentRow < numElements)
      {
        System.out.println("FMVerticalContents -- dy > 0 !!!");
        fmSingContent[currentRow].setBackground(back);
        currentRow++;
        invalidate();
                            }
        return true;
       }else{          

       return true;
    }     

  }

A HorizontalFieldManager does not paint anything, it's just a control class.
You can crush his painting method to change this, for example with fillRect before calling super.

Tags: BlackBerry Developers

Similar Questions

  • How will I know if my Airport Extreme has the latest firmware?  And (not related) how to change the password used to connect to my network?

    I think I bought the latest version of Airport Extreme.  It is the unit which is rectangular, is about 6 to 7 w., etc.  I have some basic questions that I do not understand:

    1. How will I know if I have the latest firmware for this device?  I read a few posts that make it sound as if it was just automatically updates.  Is this true?

    2. can someone tell me how to change the password used to connect to my wireless network?

    Thank you very much!

    Chris

    If a firmware update is available, AirPort Extreme flashes orange.

    The most up-to-date version of the firmware is 7.7.3.

    You can see what version you currently have the following on your Mac...

    Open Finder > Applications > utilities > AirPort Utility

    Click on the image of the AirPort Extreme

    Look for the Version

    If the new firmware was available, you will see a button update here

    To change the wireless network password...

    Click on edit in the window smaller than you watched just to check the firmware version

    Click on the Wireless tab at the top of the next window

    Go back / change the wireless password and enter a new password

    Do the same thing to check

    Click Update at the bottom right of the window and give the airport a minute full for restart

  • How to change the color of edges of decoration

    Hi I have a doubt simple and stupid,

    How to change the color of edges of decoration. Follow this http://forums.ni.com/ni/attachments/ni/170/956573/2/Continuous_Strain.vi edges decoration VI for clarity.

    How do like that and change the colors.

    Please let me know.

    Kind regards

    Nang

    Use the Brush tool and set the bg/fg color

  • How to change the icon of the web in the browser window

    I created my site and cannot find how to change the icon in the browser window (as they have done at the top of this page with the icon of Adobe before the Adobe Forums: text) anyone would be nice to give me a little help?

    Do you mean the favicon?

    I only learned that recently about favicons myself - so if you google the word you will get a lot of resources to do this. Bascially, it's a little icon file located in the root directory of your site that browsers search and display for you. As long as the file is there (* named favicon.ico*) will automatically appear if I'm wrong in what I read.

    It's the thing you're looking for? (edit: it also appears in your list of bookmarks in firefox - if it isn't the one you want it is the favicon file)

  • How to change the frequency of images for an Actionscript program?

    Hello

    I read that the Timer() calls accuracy depend on the frame rate of the movie, they play in (which makes sense because they are Flash, after all!). I'm working on a project in pure ActionScript 3.0 and I wonder how I change the pace of this project, I don't mind to increase it to about 50 fps so the Timer() calls can be pretty accurate.

    The base class, it is executable, currently in this project is an extension of the Sprite, but that could change if necessary.

    Thanks in advance!

    David

    It is the Stage.frameRate property. You must Access the scene via a DisplayObject. There is also a compiler option: by default-frame-rate

  • How to change the background of the playlist window colors in iTunes

    The background color of my playlist 'window' in iTunes is black, which is difficult to read.  How to change the background of all the playlists to a light color.

    All the indications are that the selected background colors are random and cannot be changed. If someone knows a way to change them please let us know.

  • How I change the fonts and colors of default return?

    I changed the font and the color of the text through the Tools button and the button options and the tab content. I can't find anything tell me how to change the fonts and colors to the colors and fonts by default. Can you advise me? I use Windows 7 Home Premium OS. Thank you.

    Hi Brenda19605,

    You can use this article to set the fonts and colors: https://support.mozilla.org/en-US/kb/change-fonts-and-colors-websites-use?esab=a & s = do & r = 0 & s = as

    The default settings for the police are in this article:
    https://support.Mozilla.org/en-us/KB/some%20text%20shows%20up%20bold%20after%20upgrade

    Unfortunately for the default color has no good reference. For the text, but it is black (most lower-left), the background is white (color above left). Unvisited links is blue (column 8, line 5) and the visited link is purple (column 9, line 5).

    Let me know if you need help more!

    Lordfreak

  • How to change the background color of string programmatically?

    How to change the background color of string programmatically?

    Are you talking about string indicator and control chain? If so, right-click on a control/indicator of string and select Create-> property Node-> text-> text-> BG Color colors. Change to write and a number of the color you want to use phone.

  • How to change the background color of the code written DW page but not the Web page...

    How to change the background color of the code written DW page but not the Web page...

    If you have DWCC2015, you can change to edit > Preferences > coloring Code and either choose a new theme (RecoGnEyes is the background dark code by default) or you can change it to what you want in the background field by default.

    2014 CC had no theme options, but you can change the background color in the same place.

    I think that some of the previous versions also had the option, but I don't have them on my machine to check.

  • It is difficult to see how to change the color of the scrollbar in gray on gray background?

    It is difficult to see how to change the color of the scrollbar in gray on gray background?

    I think you should probably use an extension or theme to replace the default colors.

    If you are not interested in all the changes that might come with a new theme, is the next extension compatible with Linux?

    https://addons.Mozilla.org/firefox/addon/noiascrollbars/

  • How to change the background color

    How to change the background color of the label field, how to do it thanks

    I can change the color of labelfield, but I want to change the background,

    How can I do this

    Thank you.

    I do not know mantaker do not want to forget the call to super...

    public void paint (Graphics gs) {}

    gs.setBackgroundColor (0x00FF0000); red background

    GS. Clear();

    Super.Paint (GS);

    }

  • How to change the brightness, contrast, and color in the photo viewer in Windows 7?

    Change the brightness, contrast, and color in the photo viewer in win 7?

    How to change the brightness, contrast and color in the windows photo viewer 7 (I used the fix option in xp and vista)
    Thanks for any help.

    Hi epse30,

    In Windows Vista Windows Picture and Fax Viewer has been replaced by the Windows Photo Gallery and there was an option to set the brightness, contrast, etc by using the Fix as you said.

    Unfortunately, this option is not available with the Windows Photo Viewer in Windows 7.

    However, Windows Live Photo Gallery has a number of easy to use tools for things like red eye fixing or clearing exposure and low light situations. Windows Live Photo Gallery gives you more creative control over your photos. You can download Windows Live Photo Gallery for free from the link below;

    http://download.live.com/Photogallery

    Access the link below for more information about editing photos with Windows Live Photo Gallery

    http://Windows.Microsoft.com/en-us/Windows-Vista/editing-photos-with-Windows-Live-Photo-Gallery

    The above article is for Windows Vista, but it remains valid for Windows 7 as well.

    Varun j: MICROSOFT SUPPORT
    Visit our Microsoft answers feedback Forum
    http://social.answers.Microsoft.com/forums/en-us/answersfeedback/threads/ and tell us what you think

    If this post can help solve your problem, please click the 'Mark as answer' or 'Useful' at the top of this message. Marking a post as answer, or relatively useful, you help others find the answer more quickly.

  • How to change the background color dynamically on the page of the ofa

    How to change the background color dynamically on the page of the ofa

    Hello

    Can you please let me know the dynamic conditions to change the background color?

    Thank you

    Vincent

  • How to change the tooltip background color in Adobe Acrobat Reader? - ...

    How to change the tooltip background color in Adobe Acrobat Reader? - ...

    Hi xiaolaq75134938,

    I'm sorry, it is not possible to change the background color of the ToolTip, it is a design behavior.

    Kind regards
    Nicos

  • How to change the size and color of 'staticText '?

    Can anyone share please how to change the size and color of the object "staticText"?

    function buildUI (thisObj) {}

    var myPanel = (thisObj instanceof Panel)? thisObj: new window ('pallet', 'Gear of Stress', undefined, {resizable: true});

    var txt is myPanel.add ("staticText", [0,0,100,20], "txt");.

    txt. newFont, fontSize, color?

    Return myPanel;

    }

    var myToolsPanel = buildUI (this);

    I did a quick test on a PC at the office and it seems that Gill without isn't a stock PC police. You could comment on these out or change them to a police stock as Helvetica or something. Once I removed that it has launched on PC very well.

  • How to change the background color of work in Photoshop CC 2015 plan

    How to change the background color of work in Photoshop CC 2015 plan

    Just tried to change these settings:

    Preferences-> Performance-> settings of the graphics processor-> advanced settings... The change of drawing in 'Normal' mode (mine was 'Basic'). Suddenly I can not change the background.

    Hope this works for you all also.

Maybe you are looking for