JComboBox Problem !!!!!!!!!!!!!!!! PLzzzzzzzzzz Help me out frnds...

Hiiiiiii frmdsss...........im n deep trouble and need ur help immediately......im havin this prob with JComboBox....heres d code.....
public void actionPerformed(ActionEvent ae)
          JButton source=(JButton)ae.getSource();
          //JComboBox source1=(JComboBox)ae.getSource();
          if(b1.equals(source))
               cb1.setEnabled(true);
               try
                    cb1.removeActionListener(this);
                    cb1.removeAllItems();
                    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
                    con=DriverManager.getConnection("jdbc:odbc:MyDataSource","sa","");
                    stmt=con.createStatement();
                    rs=stmt.executeQuery("select prod_model from product where prod_type LIKE 'Mobile'");
                    while(rs.next())
                         cb1.addItem(String.valueOf(rs.getString(1)));
                    con.close();
               }catch(ClassNotFoundException c)
                    System.out.println("Error "+c);
               catch(SQLException e)
                    System.out.println("Exception"+e.toString());
               cb1.addActionListener(this);
if(ae.getSource() == cb1)
               /*try
               {          //cb1.removeActionListener(this);
                         //Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
                         /*con=DriverManager.getConnection("jdbc:odbc:MyDataSource","sa","");
                         String selected_id=cb1.getSelectedItem().toString();
                         stmt=con.createStatement();
                         rs=stmt.executeQuery("SELECT * FROM PRODUCT WHERE prod_model LIKE 'S%'");
                         if(rs.next())
                              JOptionPane.showMessageDialog(fr,"USER NAME IDENTIFIED","CONFIRMATION",JOptionPane.INFORMATION_MESSAGE);
                         con.close();          
               /*catch(ClassNotFoundException c)
                    System.out.println("Error "+c);
               catch(SQLException e)
                    System.out.println("EXception"+e.toString());
It gives me a huge list of errors..........
java.lang.ClassCastException
at Order.actionPerformed(Order.java:86)
at javax.swing.JComboBox.fireActionEvent(Unknown Source)
at javax.swing.JComboBox.setSelectedItem(Unknown Source)
at javax.swing.JComboBox.setSelectedIndex(Unknown Source)
at javax.swing.plaf.basic.BasicComboPopup$ListMouseHandler.mouseReleased
Source)
at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.plaf.basic.BasicComboPopup$2.processMouseEvent(Unknown So
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)...
PLzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzzz help me frnds.......i hve 2 submit this prjkt on Thursdy

The forum is fore heping out othersAnd that is exactly what I did. You won't get much help in the future if you don't change your habbits. In fact I'm surprised you got help this time.
It's your responsibility to make a question easy to read, not to make it difficult to read by (among other things):
a) holding the repeat key down
b) not spelling out words
Heck you can't even post formatted code to make it easy for people to read. Do you write your code with every line left aligned? I doubt it and we don't want to read it either.
So learn how to use the forum properly.

Similar Messages

  • HT2573 I am using macbook pro with update of 10.7.5...I am not able to authorize my digital signature. It is showing crypto service provider is missing. I am in a big problem. plzzz help me out....thanx

    I am using a mac book pro version 10.7.5..I am not able to authorize my digital signature.It is showing crypto service provider is missing. I am in a big problem . plzzzz help me out. Thanks

    You have 10.6 on that machine, I suggest you stick with it for performance, third party hardware and software reasons as long as possible.
    Consider 10.8 (not 10.7) when it's released, because 10.7 and 10.8 will require a new investment in software and newer third party hardware as it requires newer drivers the old machines won't have. (forced upgrade because of software, really nice of them)
    http://roaringapps.com/apps:table
    Far as your Safari problem do these things until it's resolved:
    1: Software Update fully under the Apple menu.
    2: Check the status of your plug-ins and update (works for all browsers) also install Firefox and see if your problems continue. You should always have at least two browsers on the machine just in case one fails.
    https://www.mozilla.org/en-US/plugincheck/
    Flash install instructions/problem resolution here if you need it.
    How to install Flash, fix problems
    3: Install Safari again from Apple's web site
    https://www.apple.com/safari/
    4: Run through this list of fixes, stopping with #16 and report back before doing #17
    Step by Step to fix your Mac

  • CiscoWorks Vs TACACS+ ??!! sw management problem--Pls help me out

    Hi Gurus,
    I have a query to ask on the software image management.Please help me out.
    There are many cisco devices in my client place, but only one device is creating a problem.
    it is 2950 catalyst switch. CiscoWorks is complaining that 'it has no image to import', when we run a job to fetch the image from the switch. but it has image under root directory of Flash. After going through RME troublshooting and tips , I came to know that the connection protocol is telnet and ssh. Then I add the following commands in TACACS+ (to allow CW2K) user which is a centralized authentication system for all user including CiscoWorks.
    Cisco has mentioned this error in following URL:
    http://www.cisco.com/en/US/products/sw/cscowork/ps2073/prod_troubleshooting_guide09186a008036dff2.html
    It looks like it is having difficulty to recognize the Flash (though it shows the files in the inventory) and at the same time, I am not sure whether the commands are complete.
    I allowed the following commands to be used by CiscoWorks through TACACS+:
    1. copy tftp flash
    2. copy flash tftp
    3. erase flash
    4. show version
    5. show flash
    Refer the URL: http://www.cisco.com/en/US/customer/products/sw/cscowork/ps2073/prod_troubleshooting_guide09186a008036dff2.html#wp1045599
    Screen shot of the error and Detailed inventory report of the device are attached here.
    Please help me out with your expertise whether it is a TACACS which is stopping CW2K to view the Flash and files? or it is a problem with CiscoWorks to see the Flash.

    This document describes the procedure to configure the CiscoWorks Hosting Solution Engine 1.8.1 (HSE) using ACS as a TACACS+/RADIUS authentication module.
    ACS TACACS+ Setup for HSE
    ACS RADIUS Setup for HSE
    On Cisco.com, see also the Administration chapter of the User Guide for the CiscoWorks Hosting Solution Engine 1.8.1.
    http://www.cisco.com/en/US/products/sw/cscowork/ps150/prod_connection_guide09186a00802b2bae.html

  • Ipod problem, someone help me out

    When I update my ipod it gets to about the 150th song or so and then it freezes up and makes some "skipping" noises. I've let it work through this issue before but the songs that it froze on didn't go on my ipod correctly and therefore would cause the ipod to freeze when I tried to play them after the update was finished. Best Buy has told me there is nothing wrong with it but I don't believe them. Someone please help me out.

    You could try removing the check mark from roughly the first 20 songs in iTunes.
    Then, connect your iPod, and when you see your Summary page, select the option to restore. (Note that this will erase everything from your iPod, but will also resolve most iPod software issues). After the restore completes, you'll get the iPod Setup Assistant, which is basically where you type in a name for your iPod. When you get to this screen, uncheck all of the automatic update options, and then click OK.
    On the iPod summary page, you can remove the checkmarks from Manually manage music and Enable disk use. Then, select the option that says Only sync checked items. Then click Apply, and iTunes should start syncing only the songs that are checked.
    If this resolves the issue then there is most like a problem with the songs in iTunes. I would restore them from a backup if you have one. You could also try burning these songs to a CD and then importing them back into iTunes.
    If this does not resolve the issue, you're probably right in suspecting an issue with the iPod. If Best Buy won't help, you can have your iPod serviced through Apple if it's still covered under your warranty or AppleCare protection plan. You can go here to set that up:
    http://depot.info.apple.com/ipod/
    If you'd prefer to go through Best Buy, at least now you can go back there and explain the troubleshooting you've gone through to isolate it to an issue with the iPod.
    CG

  • CopyExpress integration problem (Plz help me out)!!!!!!!

    Hi!! To all,
    Me Tuhin Working as SAPB1 consultant.
    Recently I faced a Problem. Prevoiusly used to work on MSSQL 2000and now migrated to MSSQL 2005. And I have uninstall and re-install SAPB1.
    But Now I can not install COPYEXPRESS, all the time system shows a message "Add Ons can't start".
    Please help me out, its urgent
    With Regards
    Tuhin

    Hi,
    Here is another solution from SAP notes about addon can't start:
    (quote}
    Add-on does not start
    Symptom
    After having installed the Add-On successfully, you start the Add-On and it stops with an error message.
    Other terms
    Extension's set-up function failed,The server threw an exception, Connection to company failed, add-on
    Reason and Prerequisites
    See solution.
    Solution
    When the Add-On is started for the first time in a company, it has to initialize itself. There are some known reasons why this process can fail:
       1. The add-on appears not to start. Immediately after you start it, a system message appears telling you that the Add-On is disconnected. Ensure that you have assigned an Add-On license to the logged-on user. Use Administration->Add-ons->Add-on Administration to assign the license.
       2. A message box appears with the title "SBOAddOnLoader". This error message is issued by the UI-API. The Add-On has a problem connecting to the UI-API. Uninstall the SAP Business One client and reinstall it.
       3. Shortly after starting the Add-On, the following message appears: "Error getting last error from DI-API". The Add-On tries to connect to the DI API, but the connection fails. Now the Add-On asks the DI API for the reason. This request also fails, probably because the DI API has not been installed. This is not a problem caused by the add-on. Install the DI API from your SAP Business One CD.
       4. After starting the Add-On, the following message appears: "Connection to company failed: the server threw an exception". This is probably due to a version mismatch. The installed DI API is not suitable for the installed version of SAP Business One. The part of the error message after the colon is issued by MS Windows, thus the message may appear in your local language. This is not a problem caused by the Add-On, but anunexpected error that occurred inside the DI API. Uninstall the wrongversion of the DI API and install the appropriate version.
          If the message after the colon is different from the above-mentioned message, the text is issued by the DI API and should describe the problem.
       5. After starting the Add-On, the Add-On runs for some time displaying a progress bar. After a while it stops and the following message appears: "Extension's set-up function failed (... Class)". This means that the Add-On encountered a problem during its initialization. Instead of the three dots, the name of the Add-On is shown. A different Add-On may have been running while this one tried to initialize itself. Stop all SAP Add-Ons before you install a new one. After a successful installation and initialization of the Add-On, you can restart the others. If no other add-on is running and the error still occurs, it may be a problem specific to this Add-On. Check the SAP Notes related to this particular Add-On.
    (quote}
    Rgds,

  • Hello sir my iphone screen turns off after using 2-5 minutes what would be the problem please help me out

    hello sir my iphone screen turns off after using 2-5 minutes what would be the problem please help me out

    To make sure that this is not software related, set it back to factory settings, without using any backup data afterwards. Set up the rest of the personal settings manually and test the phone. If it still does not work, this is a hardware issue and the phone has to be serviced by Apple or an Authorized Apple Service Provider:
    Use iTunes to restore your iOS device to factory settings - Apple Support
    Find an Apple Authorized Service Provider
    iPhone - Contact Support - Apple Support

  • JComboBox problem pls help me...............

    I have a JComboBox at the bottom of the screen. Depending on the value change in it i m setting that value into a table. Since the JComboBox has huge items the drop down goes out of the form. So if i select a item. It will not come to the table. If i make this drop down to come upside then the combo box will be inside the form..so that i can select an item.
    Please can any one tell me how to make the popup of the combo box to come upside????????????

    are you try to set combo ui. it would solve you problem

  • HT1725 I can't downlaod my purchased music to my iPad.I tried using the computer and it said all purchases for this account have been downlaoded.The musics are on my music folder on the iPad but they are not playing.Help me out.

    I can't downlaod my purchased music to my iPad.I tried using the computer and it said all purchases for this account have been downlaoded.The musics are on my music folder on the iPad but they are not playing.It's showing download error.Tap to retry on the download section of iTunes on the iPad.I just change from iPad2 to iPad 4G and I started having this problem..Help me out.

    Try here >  Downloading past purchases from the App Store, iBookstore, and iTunes Store

  • My iPhone 6 ear speaker is not working properly I couldn't able to hear any thing from ear speaker to lissen I had to put on loud speaker or to use handsfree please help me out with this problem if some body have answer?

    My iPhone 6 ear speaker is not working properly I couldn't able to hear any thing from ear speaker to listen I had to put on loud speaker or to use hands free please help me out with this problem if some body have answer?

    Hi Venkata from NZ,
    If you are having an issue with the speaker on your iPhone, I would suggest that you troubleshoot using the steps in this article - 
    If you hear no sound or distorted sound from your iPhone, iPad, or iPod touch speaker - Apple Support
    Thanks for using Apple Support Communities.
    Best,
    Brett L 

  • HT201210 In the attempt of updating the latest itune software, i am faced with the problem of not being able to be connected to itunes with my ipod touch that is blocked living the USB cable and the itune icons on my touch sceen. Can some one help me out

    In the attempt of updating my ipod touch, i am  faced with the problem of not being able to be connected to the itunes in my computer (windows xp ) because my ipod touch got blocked up, leaving the icon of USB cable and itunes on my touch screen. I am asked to restore my ipod first, but i have tried using all the examples stated and still can't help. Please please, can some one help me out ? Ones  in the process of trying, i see an error code: 1656 and most of the time nothing. Thanks

    See if placing the iPod in Recovery mode will allow a restore via iTunes
    Next try DFU mode
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings
    You can also try another computer to help determine if you have a computer or iPod problem.

  • Regarding the wireless problem of my T60. Hope there is someone who can help me out. Thx.

    I have read some of the posts and i found out that some of the Thinkpad users have the problem of unable to connect wireless network using Access Connection but not Window wireless network connection. For my case, i have connect the network with both of them. In fact, when i use either one to connect, the other would be connected too.
    The problem is, sometimes when i use my wireless network, my wireless would be switched off automatically, and the wireless light is then off, and after that i cannot switched the wireless on again. I tried on it using access connection, failed. I tried Fn+F5 to on it, but no matter how many times i click on 'on', there would not be any response. The only thing i can do after this is to restart to laptop.
    I called Lenovo Support to help me solve the problem, but still failed. The first time they asked me to installed some drivers and reinstall my Intel(R) Pro/Wireless 3945ABG Network Connection. These files included 79uj29us which is a bios update, 7kwc50ww which is the wireless driver installation, 7tvu12ww which is the hotkey driver update, and last 7tku03ww, a power management driver update. But the problem remains. The 2nd time i called, they asked me to uninstall my Access Connection and use window wireless connection as they may cause conflict to each other, and they asked me to uncheck the option of 'Allow this computer to turn off this device to save power' in the power management of wireless drive in device manager, but problem persists. The last time i called the technician and he said they only can check if it is a hardware problem and there most probably be nothing else they can do for my softwares and drivers, and he also believed that it might be the network configuration of my service provider that cause the problem, but i personally do not think so as it is quite hard to believe that the my service is switching off my wireless hardware and i have other laptop in my house too but they do not experience this problem.
    Last night i discovered something new, when the wireless is off automatically again, i ran a test on the the wireless device using PC Doctor, for PCI express status test, it passed, for the wireless connectivity and signal strength test, results showed there was 'no connection', when it comes to network link test, it showed 'internal error', the TCP/IP network connection test showed failed. Then i restarted it and ran the test with the wireless switched off by my self, the PCI express status test passed too, but the remaining four test all showed 'no connection'.
    I really hope if there is someone there to help me out to solve the problem or to enlighten me what the real problem is, could it be software or hardware problem, or could it be other problems like registry or what? I greatly appreciate if anyone can help me to solve this. Thanks alot.
    Message Edited by cat_felix on 06-13-2008 09:54 PM
    Message Edited by cat_felix on 06-13-2008 09:55 PM
    Message Edited by cat_felix on 06-14-2008 04:15 AM

    I have uninstalled my Access Connection, but this problem seems to persist. IBM technician have changed the wireless card of my T60, the first few days after it was changed was very fine, no problem at all. About a week later, the problem occured again, and it happened quite frequently after that occurence. Now i really have no idea what is the cause and how to solve it. Will be greatful if there is anyone that can help me.

  • Hello, i just downloaded itunes on my acer laptop and its been giving me problems everytime i try to get on to the itunes store.. it gives me a message saying "itunes could not connect to the itunes store. an unknown error occurred. (310).plz help me out.

    hello, i just downloaded itunes on my acer laptop and its been giving me problems everytime i try to get on to the itunes store.. it gives me a message saying "itunes could not connect to the itunes store. an unknown error occurred. (310).plz help me out. i do have the internet on but it keeps giving me the same problems .. thanks..

    Hi Young Prada,
    If you are having issues connecting to the iTunes Store, you may find the following article helpful:
    Apple Support: Can't connect to the iTunes Store
    http://support.apple.com/kb/ts1368
    Regards,
    - Brenden

  • HP 8500 printer will not print fast on firefox, but does on Safari. HP support says it is a problem with firefox. Can you help me out?

    Question
    HP 8500 printer will not print fast on firefox, but does on Safari. HP support says it is a problem with firefox. Can you help me out? edit

    Thank you for posting your list of installed Extensions. One of them might be intercepting the menu command. Since you have the Add-on Compatibility Reporter, it's possible that an older add-on that doesn't actually work well with Firefox 5 could be to blame. Could you try disabling the "HP Smart Web Printing" extension and see whether that makes any difference?
    Also, you can simulate a print button on a web site by pasting this to the location bar and pressing Enter. You also can save it as a bookmark for easier access (when scripts are saved as bookmarks, we call them bookmarklets). Hopefully you won't need it for long.
    <br>javascript:void(window.print());

  • TS3074 im can u please help me out this issue im trying to install iTunes  in windows 7 some error showing " windows installer package problem DLL require to complete this installation" this message showing.

    im can u please help me out this issue im trying to install iTunes  in windows 7 some error showing " windows installer package problem DLL require to complete this installation" this message showing.

    Try the following user tip:
    " ... A DLL required for this installation to complete could not be run ..." error messages when installing iTunes for Windows

  • I have a 160GB Hard Drive in my MBP and use VMWare Fusion and had a 60GB Virtual Machine running Windows XP. Deleted the Virtual Machine and CANNOT find the 60GB space I desperately need!  Anybody out there with a similar problem?  Help!

    I have a 160GB Hard Drive in my MBP and use VMWare Fusion and had a 60GB Virtual Machine running Windows XP. Deleted the Virtual Machine and CANNOT find the 60GB space I desperately need!  Anybody out there with a similar problem?  Help!

    Thanks - Of Course the first thing I checked and did.
    Disc Utility reads as follows:
    Capacity : 159.18 GB (159,182,127,104 Bytes)
      Format : Mac OS Extended (Journaled)  Available : 11.47 GB (11,472,896,000 Bytes)
      Owners Enabled : Yes  Used : 147.71 GB (147,709,231,104 Bytes)
      Number of Folders : 139,540  Number of Files : 511,832
    Activity Monitor(Disc Usage) shows something quite interesting.  Mac HD and Ramanan (Main User) - My hard drive is only 160GB!  Would the retired engineer gentleman please note as well.  Many thanks. Rams

Maybe you are looking for

  • Want to access network file system using JFileChooser

    Hi all, I want to access and display the drives of a network file system in the JFileChooser dialog. For example by specifying a machine name, I want to access the drives(C, E, F....) of that machine. Can anyone please guide me on how to go forward w

  • Logic on a dual 1ghz processor machine.

    I have a quicksilver dual 1ghz processor machine with 1.5gig ram. The minimum requirement for Logic is a single 1.25ghz processor. It would "seem" like a dual 1ghz processor board would trumph a single 1.25ghz processor. I went to the local Apple sto

  • NewDocumentMode Question

    I have two images that I am receiving from another program and I want to merge them into one image with each having 50% opacity.  I'm having trouble opening then in the proper way.  The file extension is "att" which boils down to a 16-bit grayscale,

  • Reg:atleast one queries

    Hi, I'm confused in writing the at least one queries. For ex: Find the book purchased by atleast one student having book no:1543... I need to write the above query using BOOKS AND STUDENTS table.. Could you suggest me for writing this type of queries

  • Facebook - deletion

    I downloaded the Facebook app when I first got my phone in June of last year. Today I deleted it along with other apps in plans on re-downloading them. Why I would do this, I don't know, but this is where my problem arised. So i deleted the App and t