Why ComboBox.disabledForeground not take effect when JComboBox is editable

Hi, there:
I use UIManager.getDefaults().put("ComboBox.disabledForeground", Color.GRAY ) to define the fore ground color when my JComboBox is disabled. However, just noticed that if I set JComboBox Editable to be true, then, the application seems using the default disabledForeground color instead of the one I defined (ex. gray).
For example:
UIManager.getDefaults().put("ComboBox.disabledForeground", Color.gray );
comboBox.setSelectedItem("bbbbbb");
//comboBox.setEditable(true);
comboBox.setEnabled(false);The above code works fine and set foregound color as gray. However, if I added the line: comboBox.setEditable(true); The application just uses default foreground color (light blue in 1.5).
Does any one know why?
Highly appreciated if any comments or hints.
Thanks a lot in advance.
David

problem doesn't exist. close it.

Similar Messages

  • Why custom layout not take effect if navigating from left tree

    Hi,
    I specified a custom layout for a repository in KM Content. The layout is a duplicate of AdminExplorer, which contains a tree structure in the left panel.
    The problem is, when I navigate the repository in the right panel, the custom layout is always in effect. However, if I navigate from the tree structure in the left panel, the custom layout doesn't take effect.
    Anyone knows why? I wonder if I forget to configure something, or this is indeed not supported?
    I don't know how to attach screenshot - if you wanna see the screenshot for more info, please add [email protected]
    Thanks,
    Ray

    problem doesn't exist. close it.

  • Why does form validation take effect when navigating menu items?

    I am using JDev 10.1.3.3.
    I have a data entry form where all the af:inputField's are set to Required=true. I expected that the mandatory fields should only be enforced if I click the form 's submit button.
    However, when I navigate to another menu item from my menu bar without filling in the fields, the mandatory fields also get enforced (e.g. Required Messages on fields appear and I am forced to have to enter some data on the field before I am able to navigate to another menu item. ) Navigating menu items should imply I am not proceeding with the data entry and should allow me to navigate instantly, even if there are blank fields.
    I notice the SRDemo also had this same behavior. Under "New Service Request", if you don't fill in a description and navigate to another menu item from the menu bar, it will complain and ask you to enter a problem description before switching tabs.
    This is obviosly not the intended behavior. How do I change this behavior so that when I switch menu items, data validation will not take place?

    Hi
    it happens cause the entire page is one form when you try to navigate out what it does is that it submits the form.
    To avoid validation for particular links or buttons set their property immediate to "true"
    hope this helps

  • Transport shows successfull but why it is not taking effect in test

    Hi all ,
    I have changed my dataource and added some Z fields .
    But when i transport that to test system, i can not see the effect in test .
    Transport shows successfull but why it is not takin effect from the Dev Datasource changes to Test systems ?
    Please give me solution

    Hi,
    You can check the version of the data source.
    Check this version if shows the latest date and the TR number on which you have transported the data source.If it contains different one then select your one and activate it.
    You can actually activate the desired version.
    Just go RSO2->Extract structure->utiliteis-> version -> version management.
    Thanks

  • Data in cell does not take effect immed

    Hi I have JTable with all cells editable.
    Problem is when user click on a cell and enter the data. That data does not get immediately take effect in table model unless user click on some other cell.
    How can i make data immediately available when for example user click on Change button and user does not have to click on any other cell.
    eg...row has 4 columns.....123....456....date....date
    if user changes 123 to 321...and click on CHange button i have in panel. ..it does not take effect.....user has to click on some other cell ie eg 456 cell.....then press Change button.

    in preparetable where i set the model, create columns, set renderer and editors. I even tried at the end of that method..ie added this line....still did not work....please help
      public void prepairLnnTable() {
        lnnTableModel = new CellSiteLNNTableModel();
        lnnTable.setModel(lnnTableModel);
        lnnTableModel.addColumn("AAA");
        lnnTableModel.addColumn("BBB");
        lnnTableModel.addColumn("Effective From");
        lnnTableModel.addColumn("Effective To");
        ccpd6.setAllowedCharacters("0123456789");
        ccpd7.setAllowedCharacters("0123456789");
        for(int k = 0; k < lnnTableModel.getColumnCount(); k++) {
          TableColumn col = lnnTable.getColumn(lnnTableModel.getColumnName(k));
          DefaultTableCellRenderer textRenderer = new DefaultTableCellRenderer();
          JTextField textColumn = new JTextField();
          TableCellRenderer renderer = null;
    //      TableCellEditor editor = null;
          if(k == CellSiteLNN.AAA) {
            renderer = textRenderer;
            DefaultCellEditor editor = new DefaultCellEditor(textColumn);
            editor.setClickCountToStart(1);
            col.setPreferredWidth(25);
            textColumn.setDocument(ccpd6);
            col.setCellEditor(editor);
          if(k == CellSiteLNN.BBB) {
            renderer = textRenderer;
            DefaultCellEditor editor = new DefaultCellEditor(textColumn);
            editor.setClickCountToStart(1);
            col.setPreferredWidth(25);
            textColumn.setDocument(ccpd7);
            col.setCellEditor(editor);
          if(k == CellSiteLNN.EFF_FROM) {
            renderer = new DateCellRenderer();
            TableCellEditor editor = new DateCellEditor();
            col.setPreferredWidth(180);
            col.setCellEditor(editor);
          if(k == CellSiteLNN.EFF_TO) {
            renderer = new DateCellRenderer();
            TableCellEditor editor = new DateCellEditor();
            col.setPreferredWidth(180);
            col.setCellEditor(editor);
          col.setCellRenderer(renderer);
    //      col.setCellEditor(editor);
    lnnTable.putClientProperty("terminateEditOnFocusLost", Boolean.TRUE);
      dFormat.setTimeZone(TimeZone.getDefault());
      dFormat.setLenient(false);
      }

  • Put movies in itunes on one computer why does it not show up when i access itunes from other computers or ipad2?

    put movies in itunes on one computer why does it not show up when i access itunes from other computers or ipad2?

    i just purchased a file that had videos in it. i put them in the itunes library on my pc where i first downloaded them. i was able to transfer them to my other pc, a laptop, through my home network. i am now trying to get them on my mac pro desktop and my ipad2. my mac pro can see the other computers on my home network but i cannot get it to connect to them. i know the operating systems are different but was hoping i could transfer pictures and files from pc to mac this way. haven't been able to get it to work yet. the videos i am trying to get my mac to see came in a folder with both mac and pc versions. i thought if i got the videos i purchased into itunes that i would then be able to get them to my mac pro and my ipad2. i am new to mac/apple and have always been pc-centric so trying to marry it all has been difficult. i speak pc pretty well but am just learning apple. am i trying to do things that are not possible? i sure could use a knowledgable friendly soul to walk me through my issues of having pc and mac on the same network. i have been able to get all computers and ipad to print on my network. thanks.

  • Why can I not open pictures when I click on the host icon on my desktop? It just sits there, and can not open from top menu bar as well, only via itunes

    why can I not open pictures when I click on the host icon on my desktop? It just sits there, and can not open from top menu bar as well, only via itunes

    Does your question involve iPhoto in some way?

  • Because I want to check my location after they said Actions will take effect when this iphone connects to the internet I dont understand what happen

    because I want to check my location after they said Actions will take effect when this iphone connects to the internet I dont understand what happen

    One post is enough, no need to create 3 threads on the same subject.

  • HT1848 How do I sync my music on my computer to my iPhone - why does this not happen automatically when I connect?

    How do I sync my music on my computer to my iPhone - why does this not happen automatically when I connect?

    Do you have iTunes set to sync music to the device?
    Have you read the User's Guide that explains how to use the device?
    Syncing media and content to iDevices

  • ACTIONS WILL TAKE EFFECT WHEN THIS IPHONE CONNECTS TO THE INTERNET.

    when i tryed to locate my iphone from icluod website , it saied  "ACTIONS WILL TAKE EFFECT WHEN THIS IPHONE CONNECTS TO THE INTERNET."
    1- i have the same id apple 
    2- find my iphone is on on icloud and location services
    3- i've tryed all troubleshooting
    4- my iphone is connected to the internet
    my iphone is on ios 5.1.1
    do i need to upgrade it ti 6 so i can locate my iphone ???
    please need help as fast as it possible !
    thankyou.

    im using it ...
    it appers my iphone offline  and says that
    ACTIONS WILL TAKE EFFECT WHEN THIS IPHONE CONNECTS TO THE INTERNET.

  • Why can i not call out when in roaming but can recieve calls

    why can i not call out when roaming and my data shuts off but i can recieve calls

        rhondahuffman1,
    These are great question and we definitely want to help out! For starters, what model of device are we working with? Are you roaming outside of the country or is the device stating roaming within certain areas? What's your zip code? Happening in specific locations? Share some details, so that we may assist.
    AdamG_VZW
    Follow us on Twitter @VZWSupport

  • Update 4.01 asks to update, I say yes it appears to update then in the last step it goes back up to the update center and cannot connect, the update does not take effect and it keeps asking

    I allow update 4.01 to update got thru all the steps and at the last step it goes back out to the update and cannot connect, the update does not take effect.

    Sign out of your account on the iPad, restart the iPad and then sign back into your account.
    Settinsg>Store>Apple ID - tap the ID and sign out.
    Restart the iPad by holding down on the sleep button until the red slider appears and then slide to shut off. To power up hold the sleep button until the Apple logo appears and let go of the button.
    After restarting go to Settings>Store and sign in again.

  • GPO Run these programs at user logon not taking effect when configured in Computer Configuration section

    [EDIT 20140207]:
    I found that the default domain policy sets "run these programs at user logon" and (other than I expected) not BOTH GPO settings become active, but the setting from the default domain policy overrides the setting from my new GPO. So I think I have
    found the answer myself.
    When on our W2k8-R2 DC I create a new GPO and configure
    "Computer Configuration/Policies/Windows Settings/Administrative Templates/System/Logon/run these programs at user logon" to "c:\windows\system32\notepad.exe" (just for testing) it won't take effect on Win 7 SP1, no matter what the Security
    Filtering options are.
    It seems other settings (in the very same GPO) become active but "run these programs at user login" from the computer policies section doesn't. I configure the very same setting in the section "user policies" instead and add "Authenticated
    Users" to Security Filtering, the program will be started. But that's not what I need.
    I can reproduce the issue, here are the exact steps:
    create a new group "group-a" for later security filtering
    create a new GPO
    in the new GPO set "Computer Configuration/Policies/Windows Settings/Administrative Templates/System/Logon/run these programs at user logon" to "c:\windows\system32\notepad.exe"
    for setting the scope remove "authenticated users" from Security Filtering and add "group-a" instead
    link the GPO to the domain root
    make "test computer" a member of "group-a"
    on "test computer" run "gpupdate /force", reboot, log in
    Issue: notepad is not being started.
    What I'm aiming for is obvious: Depending on the membership of group-a I want to configure certain programs that should be started whenever a user logs in.
    gpresult /R returns that it would be applying the GPO. (It actually is but the setting "run these programs at user login" is not being applied.)
    For debugging I started MMC / RSoP on one of the machines on which the GPO should have been applied and found that "run these programs at user login" is not set (which seems to be the reason why the GPO won't work on the machines).
    Searching the web I found similar reports
    [1] [2] but no solution was found and the user used a workaround instead.
    If I change the GPO so that I use the very same setting in "user configuration" instead of "computer configuration" it works as long as I add "authenticated users" to the Security Filtering. But then the GPO is applied to all users
    and not only to the ones using computers which are members of group-a. According to this howto [3] I should not remove "authenticated users" but alter the security setting instead. However, the howto seems to be aimed ad w2k3 and using Win2k8 I cannot
    find security settings "apply" for "authenticated users" so I cannot remove that setting, there's only "read" or "read and modify".
    So two questions:
    1. Why doesn't it work when using "computer settings"
    2. What about that Security Filtering with removing "authenticated users" and using group-a instead?
    T.
    [1] http://social.technet.microsoft.com/Forums/windows/en-US/0e280490-fba6-4ced-aba5-ae49c60e44bd/computer-gpo-run-these-programs-at-user-logon-not-working-as-intended-on-win7-clients?forum=w7itproinstall
    [2] http://social.technet.microsoft.com/Forums/windows/en-US/8cb78bf8-33ec-461e-8604-32d82d016685/run-these-programs-at-user-logon?forum=winserverGP
    [3] http://www.grouppolicy.biz/2010/05/how-to-apply-a-group-policy-object-to-individual-users-or-computer/

    Hi,
    sounds like you find the answer already.
    If you have any further question, please feel free to let me know.
    Have a nice day!
    If you have any feedback on our support, please click
    here
    Alex Zhao
    TechNet Community Support

  • Stamina Mode doesn't immediately take effect when screen is off.

    This is what I observed after playing around with Stamina mode on the Z3C. My build version is: 23.0.1.A.5.79 and running Android Version 4.4.4.
    When you manually lock the screen it doesn't immediately go into stamina mode, and I can still receive data from all apps and get all notifications. After about 5 mins of staying locked with no interruption from data received and notifications, Stamina mode will start working and only allow the allowed list of apps to receive data and display notifications. Another observation is that once Stamina mode is working as it should and one of the allowed apps wakes up the screen, Stamina mode will continue block any apps not listed as allowed to receive data and continue to work, which is PERFECT.
    However, if any data is received between the time you lock the screen and the 5 min mark, notifications can keep coming from any app until the full 5 mins has gone through with no interruption from any apps data or notifications.
    My question is why doesn't Stamina mode take effect immediately after you lock your phone and the screen is off? If it waits for 5 mins and data keeps coming every 1-4 mins, then Stamina mode will never be activated and the battery will drain as normal.

    http://talk.sonymobile.com/t5/FAQ/Battery-time-and-enhancement-features/m-p/347874#U347874
    "I'd rather be hated for who I am, than loved for who I am not." Kurt Cobain (1967-1994)

  • Classic Report - Column Conditions Not taking Effect when Changing Pagination

    Apex Version:  4.2.1.00.08
    DB Version: 11g Release 11.2.0.3.0
    Hi,
    I have a classic report that has some columns that conditional hide/show depending upon the value of a page item.  When the report is first displayed with the first pagination set(Rows 1-100), the columns display as they should.
    When moving to the next pagination set(Rows 101-200), the columns no longer display as they should and it seems that the condition is not taking effect.  Partial Page Refresh is set to 'Yes' for the report.
    Any ideas on why this might be occurring?

    tvanderl
    Assuming you mean that columns are rendered while you expect them not to.
    Are the conditions based on page items.
    It could be that the session state of those items is different between when the page is first rendered and when de refresh due to the pagination is done.
    See if adding the in the condition used page items to the page items to be submitted for the region helps.
    Others wise see if you can replicate the issue on apex.oracle.com so we can see what you mean.
    Nicolette

Maybe you are looking for

  • How can I see the relationship of tables in Microsoft SQL Server?

    How can I see the relationships of the tables? Exactly like what we see in Access. In Access if we select Database tool and then relationships, we can see how the tables are linked to each other. How can I find this option in SQL Server Management St

  • Apple tv updating problem.

    when i was updating my apple tv the power were cut off now the device is not displaying anything also the white light at its front is flashing. can anyone help me ?

  • Interpret Footage works fine in pre8 but NOT pre9

    I use pre8 at work - use Interpret Footage all the time to Conform to - PAL widescreen. It works fine. No problems. I have just purchased pre9 for use at home. Interpret Footage does NOT work. The video fails and the audio fails. Not good. Problem. I

  • No direct postings possible

    hi, sap gurus, while creating G/L account for Payable for services system is throwing an error called "No Direct Postings Possible: i dont know what went wrong please suggest me to correct this issue regards, balaji.t

  • Simple Date and Time Applet....

    Obviously I am a java newbie... I just need to know how to write a simple java applet that displays the current date and time... refreshing every second... in a small sans-serif font. Does anyone know where I can find an applet like this with the cod