Problem in storing of the resultset in vector and updating comboboxes

i'm using Vectors to store the data which i got from the resultsets. all that is working fine. i display this data in a vector in a JComboBox. but my method is resetting the vector itself eventhough i'm not touching it at all. the code is as follows
int in=canteen_text.getSelectedIndex();
System.out.println(item_description[in]);
for(int i=0;i<10;i++)
     item_name.removeAllItems();
     for(int j=0;j<item_description[in].size();j++)
          item_name[i].addItem(item_description[in].elementAt(j));
     item_name[i].setSelectedIndex(0);
here canteen_text is a JComboBox,
item_description[] is my array of vectors
item_name[] is my array of JComboBox
i still can't understand how this code is resetting item_description[0].
plz help!!!

Don't cross-post:
http://forum.java.sun.com/thread.jsp?thread=472970&forum=424&message=2188783
http://forum.java.sun.com/thread.jsp?thread=472969&forum=57&message=2188781
http://forum.java.sun.com/thread.jsp?thread=472968&forum=422&message=2188779
http://forum.java.sun.com/thread.jsp?thread=472966&forum=31&message=2188776
http://forum.java.sun.com/thread.jsp?thread=472932&forum=48&message=2188536
MOD

Similar Messages

  • Problem in storing of the resultset in vector

    i'm using Vectors to store the data which i got from the resultsets. all that is working fine. i display this data in a vector in a JComboBox. but my method is resetting the vector itself eventhough i'm not touching it at all. the code is as follows
    int in=canteen_text.getSelectedIndex();
    System.out.println(item_description[in]);
    for(int i=0;i<10;i++)
         item_name.removeAllItems();
         for(int j=0;j<item_description[in].size();j++)
              item_name[i].addItem(item_description[in].elementAt(j));
         item_name[i].setSelectedIndex(0);
    here canteen_text is a JComboBox,
    item_description[] is my array of vectors
    item_name[] is my array of JComboBox
    i still can't understand how this code is resetting item_description[0].
    plz help!!!

    Don't cross-post:
    http://forum.java.sun.com/thread.jsp?thread=472970&forum=424&message=2188783
    http://forum.java.sun.com/thread.jsp?thread=472969&forum=57&message=2188781
    http://forum.java.sun.com/thread.jsp?thread=472968&forum=422&message=2188779
    http://forum.java.sun.com/thread.jsp?thread=472966&forum=31&message=2188776
    http://forum.java.sun.com/thread.jsp?thread=472932&forum=48&message=2188536
    MOD

  • TS1702 problem with updated find my iPhone app: when I attempt to open the FMi app, it tells me that I need to be a registered developer and run iOS7 to do so; is anyone else having this problem?  I got the app as a regular update to my existing FMi app w

    problem with updated find my iPhone (FMi) app: when I attempt to open the FMi app, it tells me that I need to be a registered developer and run iOS7 to do so; is anyone else having this problem?  I got the app as a regular update to my existing FMi app which worked great.

    The problem is being reported in the news media, yes. Apparently someone at Apple jumped the gun and uploaded the update before it was ready. They'll probably issue another update shortly, I would expect, but you can go here:
    http://www.apple.com/support/itunes/contact/
    and follow the instructions to report the issue to the iTunes Store. If you have a backup copy of the older version of the app, remove the newer version, restore the old version to iTunes on your computer, and resync.
    Update: Well, that was certainly quick. As of a short time ago, various sites are reporting that the Find My iPhone app is no longer displaying the previous error message. If it still is for you, delete it from your iPhone and re-download from the iTunes Store.
    Regards.

  • Capture the Invoice Split Reason and update it in the invoice header text

    Hi All,
    We have a requirement where we need to capture the invoice split reason and update the reason in the one of the invoice header text.
    Problem is the routine where the split criteria is being determined is called a number of times, so how will we determine at what time of time do we need to capture the split reason. I mean at what iteration of the routine will we know that the split value is the right value.
    Is there any way to determine the number of iterations of a routine written for split?
    Require your valuable inputs for this issue....
    TIA
    Regards,
    Sharadendu

    Hi,
    Is your invoice split reason maintained in the header or item level?
    Try coding your logic in user exit MV45AFZZ and update header text using text id and save it in header text using
    FM [SAVE_TEXT|http://help.sap.com/saphelp_40b/helpdata/en/d6/0db8ef494511d182b70000e829fbfe/content.htm].
    Before this logic use FM [READ_TEXT|http://help.sap.com/saphelp_nw70/helpdata/en/d6/0db8c8494511d182b70000e829fbfe/content.htm] to determine if the header text is already updated. If yes,exit else save your HEADER_TEXT using SAVE_TEXT.
    This code can be written under FORM_USEREXIT_SAVE_DOCUMENT_PREPARE.
    Regards,
    Amit
    Edited by: Amit Iyer on Sep 1, 2009 8:46 PM

  • In jdbc adapter what is the difference between insert and update insert

    in jdbc adapter what is the difference between insert and update insert
    Edited by: katru vijay on Mar 22, 2010 7:43 AM

    Please refer to this Link [Document Formats for the Receiver JDBC Adapter|http://help.sap.com/saphelp_nw04/Helpdata/EN/22/b4d13b633f7748b4d34f3191529946/frameset.htm]
    Hope this helps.
    Regards,
    Chandravadan

  • HT201210 i bought a iphone 3g from market yesterday and the phone is showing a usb an also itunes logo on the screen, the ive tryed restore and update, but once this has finished it gives me erra code (1015) can anybody help me plz

    i bought a iphone 3g from market yesterday and the phone is showing a usb an also itunes logo on the screen, the ive tryed restore and update, but once this has finished it gives me erra code (1015) can anybody help me plz

    Error 1015: This error is typically caused by attempts to downgrade the iPhone, iPad, or iPod touch's software. This can occur when you attempt to restore using an older .ipsw file. Downgrading to a previous version is not supported. To resolve this issue, attempt to restore with the latest iPhone, iPad, or iPod touch software available from Apple. This error can also occur when an unauthorized modification of the iOS has occurred and you are now trying to restore to an authorized, default state.
    http://support.apple.com/kb/TS3694#error1015.

  • Hi, I have got three ipad minis which I would like to use in a business environment whereby the users can see and update a single calender.  Is this possible? Would they have to be run form one account?

    Hi, I have got three ipad minis which I would like to use in a business environment whereby the users can see and update a single calender.  Is this possible? Would they have to be run form one account?

    Drrhythm2 wrote:
    What's the best solution for this? I
    Copy the entire /Music/iTunes/ folder from her old compouter to /Music/ in her account on this new computer.

  • I was in the process of jailbreaking and updating my ipod and when i was updating it,it went into recovery mode and now i cant get it out of recovery mode so what can i do??

    i was in the process of jailbreaking and updating my ipod and when i was updating it,it went into recovery mode and now i cant get it out of recovery mode so what can i do??

    Go elsewhere:
    Jailbreaking voids the Apple warranty and also means that you will not get any support from Apple, including from this Apple forum. Jailbreaking can't be discussed in this Apple forum.
    Unauthorized modification of iOS has been a major source of instability, disruption of services, and other issues

  • I downloaded the latest firefox 4 and updated my file, firefox 4 will not work with my version of Mac OS X, how do I get my old firefox back?

    I downloaded the latest firefox 4 and updated my file, firefox 4 will not work with my version of Mac OS X, how do I get my old firefox back?

    You can get Firefox 3.6 from http://www.mozilla.com/en-US/firefox/all-older.html

  • TS4268 after i update iphone 4 to i6 the facetime icon missing and updat to how many time thae sam please help me

    after i update iphone 4 to i6 the facetime icon missing and updat to how many time thae sam please help me

    piss off forum spamming monkey

  • My phone i disabled.when i connected it to the pc to restore and update it..my iphone after 5 mins goes restart? plz help me what  should i do

    my phone i disabled.when i connected it to the pc to restore and update it..my iphone after 5 mins goes restart? plz help me what  should i do

    The Basic Troubleshooting Steps are:
    Restart... Reset... Restore from Backup...  Restore as New...
    Malvinfromny wrote:
    ... i tried to restore it but when i do the phone does half of the steps and then it turns into a blue screen and it doesnt work again what can i do?
    If you try all these Steps and you still have issues... Then a Visit to an Apple Store or AASP (Authorized Apple Service Provider) is the Next Step... Be sure to make an appointment first...

  • What does the password stored in the JAGENT wallet do, and what JAVA_HOME should I use for the pw_agent_util.sh command?

    I am configuring the GoldenGate Plugin for OEM. There is a step to create the wallet. The documentation is not clear about the role of the password supplied. If I run the JAGENT as oracle user, should it match the password for the oracle user, or is this password separate? Also, should I use the OEM agent jdk for the JAVA_HOME setting?
    ./pw_agent_util.sh -jagentonly

    Pat,
    Morning.  Good to see that someone is working on using the plug-in for GoldenGate within OEM12c.
    If you are using the plug-in 12.1.0.2, you will be much better off with reporting on GoldenGate processes.  In order to get the 12.1.0.2 plug-in to work, the JAgent 12.1.3.0 is needed and can be downloaded in the Oracle GoldenGate Monitor distribution (Configuring Oracle #GoldenGate Monitor Agent | DBASolved) .  If you are using the old plug-in 12.1.0.1, then the JAgent is embedded with the GoldenGate software (Oracle GoldenGAte (11.2.1.0.1 and later) and Oracle Enterprise Manager 12c | DBASolved).  I recommend taking the new plug-in!
    Now to address you question about the password. The password is stored in the wallet under the GoldenGate home ($OGG_HOME/dirwlt) and is used directly for the JAgent to login to the EMAgent and communicate with OEM.  The user name associated the password is configured in the $JAGENT_HOME (different depending on version, look for Config.properties).  Then in OEM, the username defined in Config.properties and the password in the wallet needs to be provided before OEM will pick up the GoldenGate targets.
    The $JAVA_HOME setting depends on the version of JAgent you are going to run.  The JAgent 12.1.3.0 using JDK 1.7 or higher.  The embedded JAgent using JDK 1.6. 
    Thanks
    Bobby

  • Problem when adding java objects in a vector and passing thru web service

    Hi! I'm getting this error when I try to add a java object I created into a vector and passing it through a web service: java.lang.IllegalArgumentException: No Serializer found to serialize a 'testObj' using encoding style 'http://schemas.xmlsoap.org/soap/encoding/'
    This does not happen when I simply add strings or Integer objects into the vector. What am I missing?
    Thanks.

    just chek this
    http://forum.java.sun.com/thread.jspa?threadID=501189&messageID=2370914
    Edited by: garava on Jul 16, 2008 1:13 PM.
    It would be great if you could paste the wsdl part for that vector and just have a look for the complex typr cntent
    like for HashMap we have the following mapping
    <complexType name="HashMap">
      <sequence>
        <element name="item" minOccurs="0" maxOccurs="unbounded">
          <complexType>
            <sequence>
              <element name="key" type="anyType" />
              <element name="value" type="anyType" />
            </sequence>
          </complexType>
        </element>
      </sequence>
    </complexType>Since in Value it should again contain a mapping for the Object which you are trying to pass then only an appropriate serializer and deserilaizer would get generated. Hope this answers your query. For refernece
    http://www.theserverside.com/tt/articles/article.tss?l=Systinet-web-services-part-2
    [http://www.theserverside.com/tt/articles/article.tss?l=Systinet-web-services-part-2|For refernce tutorial]
    Thanks,
    Avadhoot Sawant.
    Edited by: garava on Jul 16, 2008 1:16 PM

  • Texting problem. Glitch with the new iOS 6.1 update

    I just previously updated my iPhone 4S to the new iOS 6.1 and now when I open my texting app it is just blank. I can receive text messages but there is not way for me to send any. I have a verison network so I don't know. I have called the support line and went through so many steps to try and solve this problem but no one has a clue what's wrong. I'm pretty sure is a bug or glitch in the new update.

    Start with something easy and see if it helps.
    Quit the Photos app completely and reboot the iPad. Go to the home screen first by tapping the home button. Double tap the home button and the recents tray will appear with all of your recent apps displayed at the bottom. Tap and hold down on any app icon until it begins to wiggle. Tap the minus sign in the upper left corner of the app that you want to close. Tap the home button or anywhere above the task bar.
    Reboot the iPad by holding down on the sleep and home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider if it appears on the screen - let go of the buttons. Let the iPad start up.

  • I have set my daughter up a user account on my pc. I have got her own itunes set up and she has signed in with her apple id etc. no problem but, despite all the settings being right and music being selected i cannot get her ipod to sync music.

    I have set my daughter up her own Itunes on my pc but, despite all the settings being right and having logged in on her own account it will not sync music. the first time she tried it wiped any music off that is on there and now will go through sync but music is still not syncing to the ipod. it also shows on the bar at the battom as audio content being there but wont appear.

    - Restore from backup. See:                                 
      iOS: How to back up

Maybe you are looking for

  • MacBook1,1(32-bit) to MacBookPro5,1(64-bit) 10.6.8 system slow starting

    I've received a "hand-me-down" MacBook Pro (2008; 5,1; 64-bit mode) into which I installed a new and bigger drive. I used SuperDuper! to copy the Snow Leopard backup from my MacBook (2006; 1,1; 32-bit) to that drive and then partitioned for Windows X

  • CRM Upgrade from SAP CRM ABAP 6.0 to EHP3 FOR SAP CRM 7.0

    Hi, While downtime I got the following error. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ XPRA ERRORS and RETURN CODE in SAPR740XPRA90000035.CRE ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1 E

  • How do I uninstall adobe flash player?

    I'm having trouble with my Rosetta Stone Language program loading all the neccesary units and have been told I need to uninstall the adobe flash and then reinstall so that Rosetta works better.

  • Embedded accordion

    hie i am trying to create an accordion inside another accordion. The embedded accordion does not appear as expected.. with in each accordion segment i see another blank panel created and inside it the child accordions are coming... here is the code"

  • How can my Imac be backup aware ?

    Hi, The computer's activity, as defined by the system's idletime, is only related to mouse move and pressing keys on the keyboard. While all computer's activity are not really activity to be monitored, executing a backup is an activity that is import