Highlight color for Combobox

I have a JComboBox, when i navigate between the various items inside the Combobox, it gets highlighted by some color. I want to know how to get that color object, i want to use the same color for something else. What would be the RGB combination for tat color?

Popup, or drop down, list of JComboBox is a JList object.
JList has getSelectionBackground() and ---Foreground() methods to get selection highlight
color. In order to access the JList object in a JComboBox, study the source code
JComboBox.java. Especially, its AccessibleJComboBox() constructor is the key.
Alternately, you could use:
UIManager.getColor("ComboBox.selectionBackground")
// and
UIManager.getColor("ComboBox.selectionForeground")

Similar Messages

  • Highlight color for listboxes

    Hi,
    Can the highlighting color for a selected items in AWT listboxes be changed to a different color? In Windows, the highlighting color for a selected item is Navy. I would like to change this to a different color that will work on all platforms.

    Yes, but can it be overridden in an applet so the applet listboxes can use a different highlight color such as red?

  • Change highlight color for content assist

    Hello. The highlight color for current selection in Content Assist (Code .. Hinting) in FB3 IDE is too light for me to distinguish. How it can be changed?

    Try with this
    Windows -> Prefrences -> General -> Editors -> Text Editors -> Annotations -> Right side there is list from which select -> Actionscript occurance.

  • Hw do i set background color for ComboBox?

    If anyone knows how to set background color for disabeld (setEnabled(false)) of ComboBox in Windows Look and Feel. It will help me a lot.
    I don't know hoe to do it
    regards
    arun.

    At the start of your program add:
    UIManager.put("ComboBox.disabledBackground", Color.green);
    UIManager.put("ComboBox.disabledForeground", Color.blue);For a list of all the properties you can change with the UIManager see:
    http://www.discoverteenergy.com/files/ShowUIDefaults.java

  • How to change highlight color for menus?

    What controls the highlight color used for Firefox menus? ... like Find, Print and About ... the main menus.
    I used the Stratiform Plug-in to change my font color to blue and now it's exactly the same as the highlight color ... so highlighting makes the entry's text invisible.
    I want my highlight color to be YELLOW only, regardless of any theme I might use.

    Good idea ... but (in XP) the color for Selected Items only affects Windows menu entries. It looks like some other setting affects the Firefox ones. I've attached a couple of captures to show what I'm seeing.
    Thanks for trying.

  • Is there a way to change the highlight color for buttons?

    I swear, iDVD has got to be the most counter-intuitive program Apple has made in recent memory. I'm a huge Apple fan but this program makes me want to throw my computer at the freaking wall.
    All I want to do is change the ugly yellow highlight color of the buttons (which appears when you select them) in the DVD menu. I'm making a wedding video, and the DVD menu is all silver, gray, black and white, so the yellow color that it defaults to looks hideous.
    Any help is appreciated!

    Good day Glenn,
    You may want to consider upgrading from Acrobat 9.5 Standard to Acrobat X Pro.  Acrobat X Professional has the redaction tool which is really easy to use. 
    You could also accomplish the workflow you described in your question.  If you right-click the tool-bar, and enable the Properties Bar, you can change the color of your highlighter tool to black.  Then you can 'highlight' the text you would like to eliminate.  After you're done, print the document to the Adobe PDF printer with 'Document and Markup' selected under the 'Comments and Forms' drop-down menu to 'refry' your PDF.
    Hope this helps!
    Kind regards,
    David
    Acrobat Community Manager
    Adobe Systems

  • Can I change highlight color for "today?"

    I have trouble telling the difference bewteen the shades of blue in the monthly calendar and the "Today" box.  The shades are so close to each other it's hard to quickly find today's date.
    Is there a way to change the highlight color to something that contasts more with the light blue? 

    I'm afraid not, but other posters have suggested that if you have the display's contrast set too high it's difficult to see the highlighting, so you could try reducing that and see if it helps.

  • How do you change the highlight color for the day of the month?

    *Does anyone know how to set up iCal so that the "Today" in the month view will show up better?*
    It is such a really faint color of light blue that I can barely tell what day it is at a glance.
    Thanks in advance for any help on this.
    Jess

    never mind... i got it
    its was the contentbackgroundcolor property....

  • How to set highlight color for JTabbedPane????

    Hi,
    In JTabbedPane class There are methods
    setbackGround(...) setForeGround(..) methods but
    what is the way to tell that, when a perticular Tab of a tabbedPane
    is selected it should be highlight with this color..
    Now every thing is defaulting to grey???
    Thanks

    you're talking about the tab/s of JTabbedPane?
    if so, put this line prior to creation of the JTabbedPane (will affect all JTabbedPanes)
    UIManager.put("TabbedPane.selected",new javax.swing.plaf.ColorUIResource(Color.YELLOW));

  • Highlight Color for Acrobat Forms

    I'm using Acrobat Pro Xl
    I need the form highlights to be in a different color the the existing light blue and the black border when another user opens the pdf, views and fills individual forms out.
    I've spent now a few hour to google the web - without any succes.
    Please help!
    Thanks very much!

    You can change it via Edit - Preferences - Forms.

  • Highlight color for left panel on itunes 7.3?

    I recently updated my itunes to 7.3 and the color on the left panel changed from black to blue, How can I change the color back to black?
    Please and Thank You.

    Unfortunately, I don't think you can change this--it's not an option--it's part of iTunes.
    And, on my computer--it's not "true" blue--it's more halfway between gray and blue. (So still halfway to black, if you want some positive news!)

  • How can I change the highlight color of grid view folders in the dock?

    Using OSX 10.10 Yosemite, the highlight color for a folder in Grid view is barely noticeable.
    Can you spot the highlighted icon below?
    I've grown accustom to clicking the applications folder in the doc then typing a few letters to get me close to the app I want- now it takes an extra few seconds for me to visually find the icon that got highlighted.
    Is there a way to change the highlight color here?

    I would open up the grid spacing slightly so everything does not run together. In System Preferences > General, try setting Highlight color: Red. This won't change the grey selection background around the icon, but it will turn the background behind the icon text to red. That stands out. However, the collateral effect is that text you select in this editor, and other OS X applications, will now have a red background too. Changing colors will require a killall Finder in the Terminal. Actually set mine to #ffff00 which is a vivid yellow, which is more practical when selecting text in a document.

  • How do I control the selection highlighting colors assigned to Layers?

    When new layers are created in the Layers panel, they are set to a default selection highlighting color. The color for each new layer changes, sequencing through a list of color options. For my personal use, whether or not it's the lighting in my office and/or the artwork I'm working with, I find about 75% of the color options to be unusable. In fact, the only color definition that works consistently for me is 'Green' (the third option from the top of the list). I work with many layers on every project and I find myself changing every layer to Green manually. Is there an option to set the default highlighting color for every new layer to a single color rather than cycling through the list? I have looked through all the options I could find throughout Illustrator without seeing such.

    Create all your layers, select the first layer, hold down shift, select the last layer, then doubleclick to change all layers at one.
    Or create a template with your layers/names/colors that you want them, and save as to a .ait template format.

  • Safari pdf find text highlight color

    Using Lion 10.7.2 and Safari 5.1.1.
    The highlight color of searched (cmd+F) text follows the System Preferenes Appearance highlight color for normal web pages. For PDF documents, however, when searching for terms, Safari doesn't hand off, what, "focus" properly to the PDF doc to use the System Preference highlight color. Instead, it uses a very-hard-to-see light grey color. This article alludes to the issue:
    https://discussions.apple.com/message/3699776#3699776
    The Tab-key workaround in that article doesn't work for Safari. Instead, one must physically click the PDF document of the desired highlight color will never be used.
    Please fix this. Thanks!

    I don't know if this can be done or not.  Alternatively can you change the background color of that document (maybe using the Accessibility preference.

  • How to create a "Custom Color" for highlighting? (Acrobat XI)

    March 10, 2014
    How to create a "Custom Color" for highlighting? (Acrobat XI)
    The numbers in the RGB and other fields change as various numbers are changed.
    I wanted to create a pale orange:
    Hue               13      Red      255
    Saturation   240      Green  177
    Luminosity    86       Blue     140
    I'd selected one of the orange squares in the color grid, to display the general orange area of the slider.
    I moved the slider to select a pale orange, which generated the above numbers.   Since this wasn't directly available to save to a Custom Color, I tried to  edit the numbers.  Unfortunately, the other numbers changed, making it impossible to actually create a color.
    Any suggestions would be appreciated.
    Note:  I used Techsmith's Snagit to show screen shots in a Word document.
    When I attempted to browse and upload the file, the error message said "[The content type of this image is not allowed.]"
    OK...what images *are* allowed?

    Hi Don,
    I saw Gilad answered your question in another forum post.
    Do you have everything you need at this point?
    Let me know if you need further assistance.
    Kind regards, Stacy

Maybe you are looking for