How to make a black background for a horizontalFieldManager?

I have a custom HorizontalFieldManager that bears a label for the field. I want the background of the black horizontalField Manager. How can I do?

Please help me...

Unless you develop only for 4.6 + devices, setBackground won't help you (this set appeared in 4.6.0).

The cleanest way will be

protected void paintBackground(Graphics g) {
  int prevBgColor = g.getBackgroundColor();
  g.setBackgroundColor(Color.BLACK);
  g.clear();
  g.setBackgroundcolor(prevBgColor);
}

However, you also want to ensure that the text on your LabelField is visible, as prash_bb_dev pointed out.  Either have the LabelField use, say, white background (same solution in a different place, replace Color.BLACK with Color.WHITE ) or indeed set white color inside of object and call the super.paint ().

Tags: BlackBerry Developers

Similar Questions

  • How to make the black background of my photo in Photoshop CS6?

    How to make the black background of my photo in Photoshop CS6?

    Hello there-

    There are several ways to go about this. Without a more precise description on the photo you use, I've provided a few links:

    Using the quick selection tool:

    Magic Wand tool:

    Others:

    Please let us know of other issues:

    Janelle

  • How to make a transparent background Photoshop elements 13

    How to make a transparent background Photoshop elements 13

    I opened a picture of a flower and does the following:

    1. Open the photo file
    2. The tool magnetic lasso to select the foreground
    3. Place the selection on its own layer (layer > New > layer per copy or CTRL + J)-this will be 1 layer
    4. Delete the background layer
    5. Went to file > save for web. PNG-24, checked file format forcing boxes proportion & transparency
    6. Save the file in a folder on the desktop.

    Open file with flower in PSE.

    Photo b/w open to post-secondary studies

    Flower slide the Photo tray until the work area

    If these steps do not work for you, try copying and pasting the flower to the new destination

  • How to make a free software for my laptop newly formatted? In addition to Windows 8.

    How to make a free software for my laptop newly formatted? In addition to Windows 8. I have an extended warranty at the dealer where I bought my laptop and do not know if the installation of free software is covered. But I want to do it myself if the resources are available.

    You can order Windows 8 update from the following link:

    http://www.windowsupgradeoffer.com/

    The following link will offer you if HP has tested your system for Windows 8:
    http://WWW8.HP.com/us/en/Ad/Windows-8/instructions.html

    If your system is not tested, HP will not release the drivers directly for your site template Web HP.com.

    The following hyperlink will suggest if your system is compatible with Windows 8:
    http://Windows.Microsoft.com/en-us/Windows-8/upgrade-to-Windows-8

    If your system is compatible with Windows 8, most of the pilots would be available through Windows 8. If you need any specific driver, please follow these steps:
    1. in the run box, type devmgmt.msc.
    2 unknown devices would be listed as such and plotted with a yellow question mark.
    3. Select the unknown device or any other device you need of drivers and right-click to access the properties.
    4. in the Properties window, click the Details tab and select Device Instance of Id or hardware ID from the drop-down.
    5. an alphanumeric string, like this DEV_7130 & PCI\VEN_1217 & SUBSYS_012F1025 & REV_01\4 & 6B16D5B & 0 & 33F0 is the marker for the identification of the unit.
    6. Please provide this number so we can offer you the appropriate driver.

  • How to make a menu fit for salvation policies monitors resolution is larger and readable?

    How to make a menu fit for salvation policies monitors resolution is larger and readable?

    My UI elements appear tiny. | Error postal codes of Mylenium

    Mylenium

  • Tips on how to make a business case for partitioning

    Hello world

    I am the architect of a team of business intelligence/data warehouse. We have grown to the point where I think that we need database partitioning. I believe that we are at approximately 1.5 TB of data. Our larger tables are the counts of 100 million lines with relatively large lengths Records (~ 100 columns). Our just a sort of large tables are of the order of 10 million to 50 million, however, they have very long line lengths (~ 300 columns). Based on the plans of our future source system, our data will become even more granular, and it is always necessary to maintain our historical data.

    Those who are not the only reasons, but are some conduct issues that make most of our team members think it's time we purchased database partitioning. Our team is fairly unanimous for partitioning, many of our partners from the source system also deem an 'evidence', however, we get a push back of our CIO saying that 1.5 TB and 100 million records is not only the large amount of data compared to other 'big Data' businesses and that it requires no partitioning.

    Anyone has any advice on how to make a business case for the purchase of partitioning? Is there a good way to demonstrate the value of profitability-vs?

    Thanks for your comments.

    -= Joe

    The best cost c. analysis of benefits is that you put together based on points regardless of the pain you feel.

    For example, you have pain around your evening of meeting load ALS? If you do, you can watch how (and if) partitioning would allow you to streamline your loading process and how much time you would save probably every night. If you have no problem hitting your evening load ALS today, however, this probably isn't something you want to focus on.

    You have pain around query response time? If Yes, you can watch how (and if) partitioning would improve some of the queries and most important reports. Or, perhaps, he would have you to allow users to do an ad hoc analysis more than you can't afford today because the cost would be prohibitive.

    Although you will find no doubt generic cost v. benefit whitepapers, it tends to make a much better case if you focus on what causes the pain of the company and what you as the application developers are willing to commit to. It is easy for a CIO watch a generic white paper saying "partitioning reduces ETL time up to 99%" and the question of what improvements he or she would have actually see and how this is marketing hype. It is much more difficult to look at a document put in place by the data warehouse team saying "partitioning would allow us to reduce the load of X of Y hours on Z hours every night. "That would allow us to hit our SLA w % more often without adding hardware / additional treatment for A project that we have been postpone / let Department B start to work with the data more early every morning / what causes the pain of the IOC. Of course, this means that he must be willing to make such commitments (and, of course, to meet).

    Justin

  • How to make multiple "BOLD" text, for example the positions of the scene, or the names of the characters?

    How to make multiple "BOLD" text, for example the positions of the scene, or the names of the characters?

    You can do this by changing the model of the document.

    Open the document, go to Edition-> model. A dialog box will launch that will have some element types on the left and its properties on the right.

    Select Heading (or Character name) stage left. On the right, go to the 'Text' tab and click on the "BOLD" checkbox.

    Press OK.

    I hope this helps.

    See you soon,.

    Sunny

  • Hi, my Firefox 8 comes to be automatically updated and I nowhave a black background for toolbars, which makes it very difficult for me to read, how to change this back to what I had before?

    Toolbars used to have ordinary white background with black text but not I have a black background with a black writing made only to stand out a bit by a blur of white around the typography which is not enough to make it easy for me to read.

    Thank you.

    https://support.Mozilla.com/en-us/questions/838035

  • How can I remove a black background for iMovie version 10.1.1

    I realize you can remove backgrounds, green, and blue, but can someone please tell me how I can remove a black background on the images.

    If you are referring to the use of the utility screen green/blue, green, and blue are the colors of background, only that you can use in iMovie.  To have a wider range of background color options, you must use a professional video editor such as Final Cut Pro.

    Geoff.

  • How can I make the dark background for pages viewed in Acrobat Pro ms standard?

    Just installed Acrobat DC Pro (Mac OS 10.10.2) and to change the light grey background for a dark gray standard page views but see no way to do it. Preferences are only the background color for the full screen display, display standard of the tools, menu, etc. The screen is too bright.

    Hi Alline,

    Update Acrobat DC published today (May 10, 2016) introduced a new darker theme. Please open Acrobat DC application and select help > check for updates to apply the latest update (2015.016.20039).

    Then go to view > screen theme > dark grey and restart Acrobat.

    More details here: What's new in Adobe Acrobat DC

    If please try this out and let us know your comments.

    Thank you

    -ashu

  • Black background for Google

    Hi, you all! Since I have updated at 12.10, when using Firefox, I get a black/brown background for Google. I would like to know how to return to the classic Google homepage. Thank you!

    You use code in userContent.css or extensions like Stylish?

    It is possible that an extension of Ubuntu is the cause.

    Start Firefox in Safe Mode to check if one of the extensions (Firefox/tools > Modules > Extensions) or if hardware acceleration is the cause of the problem (switch to the DEFAULT theme: Firefox/tools > Modules > appearance).

    • Do NOT click on the reset button on the start safe mode window or make changes.
  • How to get a black background in the photo (photos and actual photos)

    iPhoto can have a black background dark for photos as well regarding the photos. The default picture is white, how do I get to black?

    You can not except in edit mode

    say Apple desires - http://www.apple.com/feedback/photos.html

    LN

  • Photo book of Apple - how to make the black jacket?

    I use Aperture to make a photo book.  In the past I made the bottom of the book cover for my black books, but the book I do now I can't seem to find a way to make it black.  I have a white background.

    What version of Aperture do you have? And what theme are you using?

    This will depend on the theme, if the "Black background" option is available for coverage.

  • How to clear the black background of a Motion Graphic video?

    How can I delete a black background of a chart of video movement like this? -> Motion Graphics - torch of fire | VideoHive

    Please answer me, that would be really appreciated

    This clip comes with an alpha chanel so when you composite in AE you shouldn't have to do anything. If you have a clip of fire without an alpha chanel on a black background you can use the screen blend mode add or download the red giant Unmult plugin. It's free. Unmult works only with 100% black origins.

    There is no way to easily make a transparent background works in a media such as QuickTime or Windows Media Player, because media players do not support transparency.

  • How to make a recovery CD for Windows Vista Home Basic?

    A friend recently gave me a laptop Acer 5315 to play with (I like to play with the old pc...). It came with Win/Vista Basic Home Edition. I got to level with SP2 and 2, kicking the 2gig memory (this is the limit) and now I want to create a backup/recovery disk. It has a CD inside player, but is limited to CD (not DVD). I've been looking around, but apparently creating a Vista recovery disc without the original install disks is not easy. It's true.

    Anyone have any ideas?

    Hello

    Strange that it is limited to the CDs, Vista came on a DVD, unless you have specifically ordered CD from Microsoft if you had a license to retail not OEM...

    Use an external hard drive.

    If you want to make a complete PC Backup or a backup file only, buy an external hard drive.

    Only Vista professional, comprehensive and company have the opportunity to make complete backups of PC.

    All editions of Vista can do backups of files.

    Here's how to back up and restore your files:

    "How to back up your data.

    http://www.wintuts.com/how-to-backup-your-data

    http://www.home-PC-help.com/windowsvistabackup.html

    "How to restore your files.

    http://www.wintuts.com/how-to-restore-files

    This is how to do a full backup of the computer and how to restore it (for Vista Business, Ultimate and Enterprise only):

    «How to make a backup of the computer in Vista»

    http://www.bleepingcomputer.com/tutorials/how-to-use-Vista-complete-PC-Backup/

    "How to restore a full backup of the computer.

    http://www.bleepingcomputer.com/tutorials/Windows-Vista-complete-PC-Restore/

    FAQ from Microsoft about backup and restore:

    "Back up and restore: frequently asked questions.

    http://Windows.Microsoft.com/en-us/Windows-Vista/back-up-and-restore-frequently-asked-questions

    @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

    There are a number of 3rd party programs available for a full backup of the computer; others, you must pay for, some are free.

    This program must be purchased:

    "Acronis True Image".

    http://www.Acronis.com/homecomputing/products/TrueImage/index_gwo.html?utm_expid=4274314-6

    These are free programs for the protection of the computer:

    "EaseUS Todo Backup free"

    http://www.TODO-backup.com/products/home/free-backup-software.htm

    "AOMEI Backupper Standard for Win7.

    http://www.backup-utility.com/aomei-backupper-for-Windows7.html

    "Download Backup & Recovery 2012 free FREE!

    http://www.Paragon-Software.com/home/BR-free/download.html

    «Macrium Reflect FREE Edition»

    http://www.Macrium.com/reflectfree.aspx

    See you soon.

Maybe you are looking for