Change the color of the bar GaugeField

Hello.

I would like to change the color of the bar in a GaugeField. My code is:

int current = obj.getInt("nu_votos");
final int color = BBUtils.hex2Rgb(obj.getString("nu_color"));
GaugeField gf = new GaugeField("", 0, total, current,
        GaugeField.NO_TEXT) {
    protected void paint(Graphics g) {
        g.setBackgroundColor(color);
        super.paint(g);
    }
};

However, I still get the same blue color...

TIA

Yamil

set up your own domain, it is not so difficult.
or you can take a look on the field of gauge bitmap here:
http://supportforums.BlackBerry.com/T5/Java-development/implement-advanced-buttons-fields-and-manage...

Tags: BlackBerry Developers

Similar Questions

  • Any way to change the bars of standard reading?

    We locate our Captivate videos in many different languages. The CC button for closed captioning on the playback bar (we use SpaceBlue) is initially a bit of a problem for some languages, and we would like to change this button in the playback bar. I don't see the source files flash for standard play bars. Is it possible to change?

    Thank you!

    The FLA files for standard playback bars are in the directory where you installed Captivate and then the directory Templates/PlaybackFLA

    / Michael

  • How change the bar signal strength dBm numbers

    I know this has something to with the field test mode. But can someone tell me? Thank you.

    IPhone SE 9.3.4

    Dial the following:

    * #12345 3001 #*.

  • How can I change the color of the Windows 7 Basic theme?

    After a year of the default theme for Win7 (which I liked), for a nice change, I passed to the Windows 7 basic theme. It is somewhat a return to the 95/98 default theme, and the taskbar are a clear/grey blue. Is there a way I can darken the color a little the taskbar, but keeping all the rest on this theme (form and UI icons, etc.)?

    In the section Customize, Windows had a link to the MS site for additional themes, but none of them had what I wanted.

    "Is there a specific option that determines the color of the taskbar?

    It's been so long I forgot what I did, but I found it.  You must use the option 3D objects.
    However, this also changes the bar tools, scrollbar, tabs and buttons (maybe more)
    so may not suit your needs because it will darken all of these features.

    This has led me to research for more information which has me thinking that I can finally
    play with AREO-

    THIS - link has some interesting comments about the AERO of Shawn B.

    I still need to read the following (on my next list) but it can be interesting to play with.

    howtogeek.com

    .

  • In artificial intelligence, after that I did a text in an envelope mesh, how can I change the color of the text?

    I edited the text in a "mesh envelope" - so I could manipulate the shape.  After doing that I want to change the color - but changed the bar at the top - I don't have the ability to change the color? The bar on the side doesn't let me change it either? I'm new to HAVE - thanks!

    To have access to your original for the Assembly object, go to object > envelope distort > content change

  • How can I change the background color for the bar 'help file edit view history bookmark tools' in Firefox 29,0

    How can I change the background color for the bar 'help file edit view history bookmark tools' in Firefox 29,0

    You can add a theme of solid color to change the color of the top of the browser window, which contains the Menu bar.

    https://addons.Mozilla.org/en-us/Firefox/themes/solid

  • Can I change the application title bar color?

    With a number of open applications and windows a standard color grey silver it can be quite difficult to quickly locate a title bar to move a window.  I don't see any option in system preferences to change the color of title bar.  Can it be done?

    OS X does not have this facility.

    You may be able to find a third party extension that can do the job, but my advice would be NOT to install this software.

    C.

  • Table of clusters and the cluster is a bar counter, how can I change the color individually?

    Table of clusters and the cluster is a bar counter, how do I change the color of the bar individual meter for each element of the array?  I just realized that you cannot change the properties of an element of the array without changing everything.  For scale, I had to make digital for each graduation of the scale indicators so that each measure meter in the table in the cluster has individual scales.  I also had to do some calculations for each barmeter to display the correct proportions of 0 to 100% on the scale.  Now, I'm stumped on the color of the bar counter.  Basically, if the value exceeds a set value, the meter bar should turn red.  It must be in a table to be infinitely scalable.

    Thank you

    Matt

    And yet anothr approach...

    Right click on the bar of > Options to fill > maximum fill.

    The fill color of the same color as the background color, then make the background color transparent.

    Drop a box of color BEHIND the bar and the size correctly.

    He has this strange background 3D with flat bar, but what the Hey, his relatives. If its important a custom color box.

    Ben

  • How to change the color of the bar title in windows style Panel

    I have a Panel, in a windows style, and I want to change the default color (blue) to something else.

    I see the "color of title" and 'color of title' are grayed out in properties under "title and appearance of the title bar.

    Is there anyway that I can change the blue in another color?

    Thank you


  • change the color of a function of the numeric value indicator bar

    I'm trying to customize a digital indicator, a bar of tank, to change the color of the bar according to the numerical value.

    I assumed that I could to make it by creating a property node for change FG and BG, connected to two color within a structure of the case box, but when I can function returns an error message.

    does anyone know how to customize?

    You must use the property 'fill color '.

  • Change the color of the task/start bar

    I am trying to change the color of my task/start back to the standard blue bar but I can't find it anywhere please help!

    Try:

    Right click on Desktop > properties > appearance tab > under colors, select 'default (blue) '.
    Microsoft® Security MVP, 2004-2010

  • How to change the color of the title bar on an application?

    Original title: Windows title bar

    I use Windows Vista Ultimate on a Sony Vaio. I've customized my Windows Vista Basic theme so that my title bar was black. I don't know what happened all of a sudden today. A program called HP Update did something and the title bar changed suddenly light blue and I can't change it back! Everything was fine before. Help!

    Hello

    In native mode, change the title bar, you do not use the Vista theme. Check under personalisation/themes to see if updating is returned to the system in this mode. If so, change it to a standard theme. Once in the standard theme, you should be able to change the color of title bar (and others) in the classic appearance properties.

    If you are using a count of third-party product to change the user interface, you will need to consult with the support for this product.

    Good luck, Rick Rogers, aka "Crazy" - Microsoft MVP http://mvp.support.microsoft.com Windows help - www.rickrogers.org

  • How can I change the color of the title bars in Outlook and word?

    In customization after choosing a theme, it gives you the option of the window color and appearance.
    It is said that colors and sizes selected here apply only if you use the Windows 7 basic theme or the theme of access facility.
    However when I change the colors, it does not apply to the suite office (outlook, word, powerpoint, etc...)
    If I use a high contrast theme, it changes the title bar, title bar active...
    If I use windows 7 Basic is not?
    Is there one way other than the themes of high contrast, choose your colors for the task/title bars on of office?

    Hello Robyn B,.

    Thank you for visiting the Microsoft answers community.

    Some of the available color & size options are not available because Windows 7 Basic is a theme and will replace some of the items you choose. If you choose Windows Classic, it should allow you to change these colors and sizes in the window color and appearance UI.

    Hope this helps Chris.H
    Microsoft Answers Support Engineer
    Visit our Microsoft answers feedback Forum and let us know what you think.

  • Change the color of the development of the action bar

    Hi all

    Please help me on how to change the color of the focus of the action bar, the default color of the action bar is blue I want to change it to yellow.

    Thanks in advance.

    Do not think, that can be done with the latest version of the SDK.

    See this http://supportforums.blackberry.com/t5/Cascades-Development/How-to-change-tabbed-pane-background-col...

    -Dishooom

  • How to change the color of the title bar?

    Hi @all!

    How to change the color of the title bar? I want to use color.black, not blue? who can tell me, thanks!

    If you change your theme of "Bright" (default on the Z10) 'Dark' (which will default on the Q10) all the bars title will change to black. However, be aware that all components of Cascades will change the bright theme with the dark theme, such as the buttons change to light gray to black.

    See example on this page: http://bbcascades.com/index.php/ui-features/design/42-theme (note this is an old screenshot, I should update to have the bright theme with the new blue header bar)

Maybe you are looking for