JComboBox not visually updating after setSelectedItem

Hi there,
I'm having a strange problem wherein I have a JComboBox item, I call setSelectedItem, and visually the control does not update. It will update if I drag the window wider or move my mouse over it, but not immediately after the call. Isn't there some sort of hookup already there such that calling setSelectedItem should automatically update the combo box visually? What am I missing? Do I have to call some sort of repaint on the control after setting the selected item, or have I done something improperly?
Thanks in advance for any help you can provide me with -- this is driving me nuts!
Edited by: aardvarkk on Nov 10, 2010 7:21 PM

aardvarkk wrote:
I thought perhaps the problem was that I was reusing a ComboBoxModel across several combo boxes. I've since fixed that problem, however, and the repainting is not taking place correctly. Note that if I simply write:
tagComboBox.setSelectedItem(tagAgg);
tagComboBox.repaint();
it works as I would expect. However, when I remove the call to repaint(), I have to mouse over the combo box before it shows me its 'actual' value. It may or may not be important that I'm using the Nimbus LAF?The best way to find out is to run the program with another LaF.
Why would a repaint be necessary here if I'm making the call to setSelectedItem from the EDT?It shouldn't be necessary.
db

Similar Messages

  • Stock not getting updated after confirmation of order

    dear all
    In our scenario x is final product.x1( semifinished),x2(spare) are dependent materials for final product. x1 has bom r1 and r2 (raw materials).I put all x1,x2,r1,r2 stock available in storage.
    To get final product , only final assy of above materials by labour.PIR (md61) created for x and planning run.After planning run, planned order generated for x and converted in to production order and released.
    My requirement is on confirmation of production order, backflushing of dependent materials as per bom should be done.
    On confirmation of order in co15,saved.But, stock is not getting updated.what might be the reason? please give me some solution

    Hi
    1.Set the Back Flush Indicator in your Material Master for the components. ( You can do this in Work center and Production Order too )
    2. You can also set the flag for the field " All Components" in Order Confirmation Parameters (OPK4).
    3. If you want to post the Fert also at the time of confirmation use the Control Key which has " Auto GR"  enabled.
    While confirming the Order press the Button "Goods Movement" to ensure that the components are present there for the movement.
    Regards
    Krishna
    Regards
    Krishna

  • All Game Center friends' status says "Never Played" and not be updated after restoring iphone

    I restored my iphone today, and after that, recent game activity line of all of my friends on my game center friends list shows "Never Played" and has not been updated.
    Is there anyone saw this issue and found any solutions?

    added more description as below:
    Just in case, the following is what I did/saw :
    1. I already upgraded ios 5.1.1 and there's no problem about Game Center before restoreing ios.
    2. I restored ios(iphone 4s) via iTunes ( ver. 10.6.1.7) on windows pc
    3. After finishing the restore (I tried it with  both backup and as-new-setup), launch Game Center app and log-in as my Game Center ID
    4. Open "Friends" tab and see the friend list on the left of the screen
    5. See description below all friends' name shows "Never Played"
    I tried log-out and re-login Game Center, but this wasn't fixed.
    I feel very sad to see my Game Center ID looks broken.
    But I'm also guessing this issue comes from Game Center's server side, because this worked fine before restoring ios.

  • ASN not gettting updated after Workorder completion phase

    Hi ,
    I am doing workorder collaboration scenario. But after completion of the phase and when i complete transportation phase (shipping) , ASN should get generated in the background and it should update the conformation control key with inbound delivery in Purchase order in ECC.
    But it is not happening , I dont know how to check whether the ASN is created in the background in SNC , The ASN is not getting updated in ECC in PO .
    Can anybody help me to resolve this issue.
    Thanks and Regards
    shailesh

    Hi Shailesh
    I think first step would be to check whether ASN is getting created in SNC - you may go to Web GUI -> Delivery -> ASN -> ASN Details. If you do not see any ASN there, the issue might be from supplier side.
    How are you bringing ASN to customer's SNC system  -
    1) Creating directly in Web GUI (as Nitin has mentioned)
    2) Bringing as XML message from supplier
    3) Using EDI or other third party system
    Thanks,
    Prasun

  • UI not fully updated after transitions (only on Linux)

    After a transition of an object  the UI is not fully updated. One can still see "lines" from the "movement".
    This only happens on Linux (Debian) and not on Windows. Is this a known issue that has been fixed in later Javafx releases ?
    I am still using Java7 because of WinXP support
    Thanks for help

    > Is this a known issue that has been fixed in later Javafx releases ?
    I don't know, try a later JavaFX release and see. 
    If you still have an issue, create a reproducible, minimal, executable test case and log a bug with the test case and your full environment details - full Java version (e.g. 7u75), OS version,  graphics hardware, graphics driver version, etc.
    Using Java 7 is not advised because it will cease to be publicly supported in about month.
    There are many JavaFX bugs which were fixed for Java 8 which will never be fixed for Java 7.
    Supporting Windows XP is not advised as not even Microsoft support that.

  • Open Sales Order values not getting updated after run RVKRED77 & RVKRED88

    Hiiii,
    In Production Server. We run the reports RVKRED77 & RVKRED88. Credit info structure and and Open Sales Order values not getting updated. In FD32, Status - Sales value it showing '0". At the time of creating Sales Order Dynamic Credit check not happening coz of Tables S066 not updating. Please provide me Solution.
    Best Regards,
    Sridhar . P

    Dear Heagal,
    I followed your suggestions and implemented in the Development and moved the changes in to Quality Server. I tested it thoroughly by creating New Customer and maintained Credit Limit. I come to know that Problem is in all Servers. I made 3 changes.
    1. In Pricing Procedure Sub Total A it was not maintained against Net value. I placed it.
    2. Removed Credit groups for Delivery Type.
    3. In OVA8 i maintained Max. Doc Value :99,999,999.00 before it was with 1.00
    I checked the OMO1 Settings it was Asynchronous. As SAP Notes Suggesting to use Synchronous but here it's a client setting. So, It's Can't possible to change. Changes will affect other Company Codes.
    Tested both in DVP and QTY Dynamic Credit Check is working Perfectly and Status in FD33 Sales Value field getting update.
    If i move these changes in to Production, Will i need to run the reports again or not? How it will affect on Old Cusomer Billing and  Credit Limit data. For few of the Customers the Credit Limit data it was exceeded. Please provide me advice. The issue need to be Solved immediately.
    Best Regards,
    Sridhar

  • Table schema not being updated after a SQL 'alter'

    Hi all,
    I have a problem to do with altering table columns and queries relating to that table thereafter.
    I have a table which has been queried using an OracleDataAdapter.Fill(DataSet), if I add a column using say using an OracleCommand.ExecuteNonQuery() or sqlplus session (and doing a 'commit' after) the column does not show up on subsequant 'Fill' queries unless I reopen the DB connection.
    Just as an example, here is my test table which is defined as:
    create table steveTest
         id numeric,
         name varchar(15),
         address varchar(25)
    with a few rows of data in...
    If I query the table using ODP.NET (10 & 11)
    OracleDataAdapter oraDap = new OracleDataAdapter("select * from steveTest",oraCon);
    oraDap.Fill(ds);
    Everything is fine until I add/remove a column with say sqlplus or via an OracleCommand.ExecuteNonQuery()
    e.g     "alter table steveTest add address2 varchar2(30)"
    Subsequent Fill or data reader queries only show the unchanged table schema, without the newly added column. If I remove a column the symptoms are worse and I receive a "ORA-01007: variable not in select list"
    I can only think that ODP.NET is caching the schema for that table on that particular connection. Is there anyway to forcefully clear this out?
    I have tried OracleConnection.PurgeStatementCache(); but this doesn't seem to help me.
    My connection string is defined as:
    Data Source=(DESCRIPTION=(ADDRESS_LIST=(ADDRESS=(PROTOCOL=TCP)(HOST=10.0.0.27)(PORT=1521)))
    (CONNECT_DATA=(SERVER=DEDICATED)(SERVICE_NAME=xe)));
    User Id=system;
    Password=mypass;
    HA Events=true;
    Validate Connection=true;
    Pooling=false;
    Enlist=false;
    Statement Cache Purge=true;
    Statement Cache Size=0;
    The application I am writing is a middle tier application which handles various DB drivers and maintains several 'connection queues' which multiple lightweight client applications can use concurrently. As you can imagine, a possible scenario may arise where a table is queried, altered and then queried again which causes the above issue. The only way I can stop this from happening is if I close/open the DB connection but I don't want to do this after every alter statement.
    I have tried this on Oracle Express 10g and Oracle 10g servers with ODP.NET clients (10.2.0.100/2.111.6.0). Just a point I thought worth mentioning, this does not happen in sqlplus.
    Any help would be much appreciated.
    Regards,
    Steve

    maybe u can check by debuggin the incoming idoc in we19.
    1. check the data u are sending from the source system
    2. check for the field before and ater change in the target system.
    maybe the field is update with the same content. also check the status record of the idoc
    Message was edited by:
            Prabhu  S

  • Media Encoder does not use updated After Effects files

    Hi,
    I am working on a project using the new After Effects CC and Media Encoder. In previous versions (CS6) if I updated a file in After Effects, saved it and brought it back into Media Encoder the new rendered file would be fine.
    Now it seems that I have to quit Media Encoder in order to get the refreshed composition from After Effects into the render queue, otherwise it just re-renders whatever the last version was.
    Any thoughts?

    Nothing to fix because nothing is broken. The programs wil ltake what they need and not beyond that or more to the point, what their internal infrastructure allows them to use. Many encoding tasks require strict linear processing as do many effects in AE, which severely limits the ability to use multiple cores/ processors no matter what. Furthermore things like linear file access in clip based formats would furtehr compound the issue. And finally, naturally it matters a lot what's going on in your projects. If your footage loads slowly, move it to a faster disk. if it's compressed, uncompress/ convert it. If you use slow effects, substitute them with faster commercial third-party plug-ins. if you render to clips, redner to image sequences. The list for potential optimization could go on and on, but suffice it to say that none of this involves just pushing a magic button or checking a specific option. you need to learn these things and tweak them based on experience.
    Mylenium

  • DC not found/updated after activation

    Hello all,
    After successfully activating open activities over NWDS (and the DEV Runtime System already defined), the WebDynpro DC is not updated nor created.
    How do I resolve this issue. Please help.
    Thanks.
    Regards,
    Jan

    Hello,
    The disable automatic deployment is unchecked. Though, perhaps this info might aid: the server that hosts the NWDI had just patched from SP9 to SP14 and it appears that settings form for defining runtime systems is different.
    Though I have already tried to SDM passwords, re-sync user and user passwords. But to no avail.
    Thanks.
    Regards,
    Jan

  • Start Menu Not Auto Updating After Installation of New Applications

    // Also reported via Windows Feedback Tool //
    After the installation of several applications, the new Start Menu does not necessarily automatically update to reflect the added programs. 
    The application’s folder is properly installed under C:\ProgramData\Microsoft\Windows\Start Menu\Programs, but it will not show under the Start Menu until the user logs out and logs in.
    Interestingly enough, this behavior is not consistent.  Some applications installations are immediately reflected while others are not.
    In this particular example, LibreOffice 4.3 was installed.

    Hi @Senttu 
    Thank you for your reply.
    You can try running the file checker to look for and try to repair corrupted files.
    Go to the command prompt.
    Right click and run as administrator.
    Type sfc /scannow and press enter.
    You can also try  using the Windows troubleshooter.  Diagnose and repair Windows File and Folder Problems automatically.
    If the issue should still remain, I suggest contacting  MIcrosoft for assistance.
    Microsoft Corporation Customer Service 1 800 642 7676 or Microsoft Contac Us website.
    Good Luck!
    Sparkles1
    I work on behalf of HP
    Please click “Accept as Solution ” if you feel my post solved your issue, it will help others find the solution.
    Click the “Kudos, Thumbs Up" on the bottom right to say “Thanks” for helping!

  • Ipad mini not installing updates after 8.0.2

    after I upgraded my ipad mini, I can't install updates from the App Store. Does anyone have any ideas?

    I have two different ISPs.  My connection to U-verse is very slow, but my iPad mini connects rIght away and stays connected.  My TWC connection is much faster yet the iPad connection lasts for a very short time, unless I am sitting directly in front of the router with the iPad almost touching it.  It always shows that the iPad is connected though.  Otherwise I am constantly rebooting the iPad, removing and re entering the router info, turning wifi on and off, etc.  before the 8.0 update, my mini worked perfectly.

  • WSUS server no longer works/clients not receiving updates after replacing domain controller

    I first logged into the WSUS server and found that I couldn't launch the console, event log was full of errors about different web services not working.  I ran
    wsusutil.exe usecustomwebsite true
    which appeared to correct that problem, but the WSUS server and all workstations report the following error code when checking for updates: 
    80072F76
    Client WindowsUpdate log is full of the following:
    2014-10-29 23:36:22:935  832 f48 Misc WARNING: WinHttp: WinHttpQueryHeaders(WINHTTP_QUERY_LAST_MODIFIED) failed. error 0x80072f76
    2014-10-29 23:36:22:935  832 f48 Misc WARNING: GetServerFileTime failed. error 0x80072f76
    The upstream server and another downstream server are working fine.  It is only this one WSUS server and clients on this segment of the network where a new domain controller was put in place last week.
    Thoughts?

    Hi,
    What's the port used by your WSUS server?
    Usecustomwebsite will change the port number used by the WSUS Web services from 80 to 8530 or vice versa.
    If you set this value to true, WSUS Setup will use port 8530 for its Default Web site. If you set it to
    false, WSUS will use port 80.
    If it doesn't work, please post the entire windowsupdate.log here. It may give some hints.
    Best Regards.
    Steven Lee
    TechNet Community Support

  • IPad will not boot update after the latest update.

    AAfter he update the iPad will start, it just wants to connect to iTunes. Is there any way to correct this without iTunes

    If the reboot by holding both the power and home buttons until the apple logo appears does not help, there is not much you can do except restore via the recovery mode per the instructions in http://support.apple.com/kb/HT1808

  • IPAD3 does not automatically update after deleting a contact from Outlook 2010 over ICloud

    I've noticed that when deleting a contact on my IPAD 3, it automatically deletes the contact on my PC (Outlook 2010 set up for ICloud).  However it doesn't work or update the other way around.
    I can edit an existing contact on Outlook, or add a new contact on Outlook, and that always updates on the IPAD3.. But it doesn't update on the IPAD when deleting from Outlook which is strange.
    If I delete all the contacts on the IPAD and then re-sync once again to ICloud, then it is as it should be and any previously deleted PC contacts, do not show on the IPAD. 
    Any thoughts as to what might be happening?

    Hi Kumar,
    Please remove the codeline $List.Update();, then run your code again, it works for me.
    You may need to firstly delete the synced contacts list within Outlook to remove those undeleted accounts, then re-connect the SharePoint contacts list to outlook, then run your modified Powershell code.
    Thanks
    Daniel Yang
    TechNet Community Support

  • IPod not taking update after iTunes update.

    I just finished upgrading to iTunes 7 and it said my iPod needed an update (software version 1.2). It's in the process of updating but then it stopped and gave me an "unknown error 1417." I tried updating again and it gave me the same error. What does it mean?
    Thanks.

    some folks have been having some success getting past the 1417 using eboncairn's technique:
    eboncairn: iTunes7 & 5th gen iPod updating - is this possible solution? (winXP)

Maybe you are looking for

  • My Dreamweaver is crashing on open.

    I just downloaded the latest version of Dreamweaver.  When I try and open the app it crashes right away.  Any ideas how I can fix this?  I need this to work to operate my business.  Thank you

  • IPhone 3G 2.1 (Apps Still Crashing)

    installed about 12 apps and after a while they all started crashing and my calls kept droping very frequently... i deleted all the apps i had installed and the phone worked fine. i just re-installed one of the 12 apps i previously installed and the a

  • Update taking long time

    Hello, --- I have a STAGING table, from this table all records are moved to non staging table (both the tables have same structure) --- In non-staging table I move records using INSERT.. SELECT. However, the non -staging have many records with parent

  • J2EE engine will not start

    Hi experts. J2EE engine will not start.  Below is the lower section of the trace.  I'd appreciate help with interpretation as I am a NW newby. I just installed an J2EE key in tcode SLICENSE for our developer's subscription NW 7.0 instance.  Another t

  • Exception at Handle deserialization

    Hello all, I have a problem with deserialization of a previously serialized bean's handle. What I do: 1. In one java virtual machine I have a piece of code that do the serialization of my bean's handle - something like this: MyBean session = ...... H