Problem in resultSet if there was nothing retrieved

im making a query on a certain number and if the resultSet was empty ...how can i tell if its empty or not ??!
for example im looking for a student whose number is 123 and didnt find the student ...how can i do that ??
i tried resultSet.wasNull() but didnt work ...any suggestions ?? thanks ..

Didnt work ....heres a sample of my code :
if( resultSet == null )
javax.swing.JOptionPane.showMessageDialog(null,"Student was not found","No Data Found",javax.swing.JOptionPane.ERROR_MESSAGE);
else
while (resultSet.next() )
for( int i=1;i<=numberOfColumns;i++ )
newRow[i-1] = resultSet.getObject(i);
model.addRow(newRow);
jTable1.changeSelection(row, 0, false, false);
row++;
please anyone help me ...

Similar Messages

  • I have an iphone 5, iOS 7.0.2. Going through photos on facebook app., above on the screen, came up "saving screenshot"....but there was nothing in camera roll. What does it mean this, what's are this screenshots?

    I have an iphone 5, iOS 7.0.2. Going through photos on facebook app., above on the screen, came up "saving screenshot"....but there was nothing in camera roll. What does it mean this, what's are this screenshots?

    I agree- I apologize if I sounded skeptical and attacking. In no way did I mean it to sound that way.
    I completely agree on the software-hardware combo issue- this is why apple killed off 1G and 2G devices- because newer software revisions would never ever run well if at all on such ancient devices. can you imagine running iOS 6 on an iPhone/iPod touch 1G? That would be terrible. Let alone iOS 3 runs terrible on them and now are generally rendered useless due to newer App Store requirements (most require 4.3+ now to allow apple to kill off the older devices). forcing newer software on older hardware (apple, dell, HP,... Anything electronic this definitely applies to) will almost always yield less-than-par results. The other part is apple forcing you to upgrade by means of intentially making things obsolete. all companies do that.
    All of this factual info aside, the issue at hand with the 5 is not a software-hardware combo problem- those are most widely seen with the major revisions. then again, this isn't the first time apple has gotten caught up in battery drain snafus (even iOS 5 was plagued with this as well- and now there are some people desperate to roll back but can't). it basically waters it down to the point where keeping the stock software will always yield the best results even though newer versions provide better features- it all depends on whether or not the person deems the added features are worth a performance hit.
    PS. I'm still at 100%- and I've been using it periodically throughout the day. your combo worked for you, but didn't for me. And may or may not work for others- As the tech world would say, mileage may vary.
    PSS. What model/carrier do you have? Just wondering.

  • I went to charge my ipod touch lastnight and it would not charge. There was nothing on the screen no life in it.

    I went to charge my ipod touch lastnight and it would not charge. There was nothing on the screen no life in it. Well today i plugged into my laptop and itunes came up saying it is in recovery mode. Im trying to restore it but nothings happening on my ipod got the apple sign on the screen and the bar going across but its emtyand theres nothing loading, itunes also says waiting for ipod. Someone please help  cant live without my ipod,

    Try:
    - iOS: Not responding or does not turn on
    - Also try DFU mode after try recovery mode
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings
    - If not successful and you can't fully turn the iOS device fully off, let the battery fully drain. After charging for an least an hour try the above again.
    - Try on another computer
    - If still not successful that usually indicates a hardware problem and an appointment at the Genius Bar of an Apple store is in order.
    Apple Retail Store - Genius Bar       

  • HT4859 problem turning on phone there was a problem turning on your email. try again

    I am getting a message "problem turning on phone there was a problem turning on your email. try again"

    Have you tried the simple things first like a reboot...hold both the power and home buttons until the Apple logo appears and it restarts, ignoring the red slider if it appears?  Sometimes it is also necessary to remove and reenter a password in case it has been corrupted.  And sometimes I have just had a bad connection signal and that has been the issue.

  • Random restarts I took it to the apple store and they said there was nothing wrong with it. record shows 60 random restarts. what can I do?

    I have a MacBook pro that I bought in 2012, I have had problems with it randomly restarting almost since it was new. I called tech support several times and they did tests each time and thought they had it fixed but later it started again. Some times it will go a month and not do it but lately it has been doing it more frequently some times several times a day. Day before yesterday I took it to the apple store and left it. today they called and said they could find nothing wrong with it. But they  said they could see where it had restarted 60 times. Does anyone have any suggestions.

    These instructions must be carried out as an administrator. If you have only one user account, you are the administrator.
    Launch the Console application in any of the following ways:
    ☞ Enter the first few letters of its name into a Spotlight search. Select it in the results (it should be at the top.)
    ☞ In the Finder, select Go ▹ Utilities from the menu bar, or press the key combination shift-command-U. The application is in the folder that opens.
    ☞ Open LaunchPad. Click Utilities, then Console in the icon grid.
    Ifou don't see any reports listed, but you know there was a panic, you may have chosen Diagnostic and Usage Messages from the log list. Choose DIAGNOSTIC AND USAGE INFORMATION instead.
    In the Console window, select
              DIAGNOSTIC AND USAGE INFORMATION ▹ System Diagnostic Reports
    (not Diagnostic and Usage Messages) from the log list on the left. If you don't see that list, select
              View ▹ Show Log List
    from the menu bar.
    There is a disclosure triangle to the left of the list item. If the triangle is pointing to the right, click it so that it points down. You'll see a list of reports. A panic report has a name that begins with "Kernel" and ends in ".panic". Select the most recent one. The contents of the report will appear on the right. Use copy and paste to post the entire contents—the text, not a screenshot.
    If you don't see any reports listed, but you know there was a panic, you may have chosen Diagnostic and Usage Messages from the log list. Choose DIAGNOSTIC AND USAGE INFORMATION instead.
    In the interest of privacy, I suggest that, before posting, you edit out the “Anonymous UUID,” a long string of letters, numbers, and dashes in the header of the report, if it’s present (it may not be.)
    Please don’t post other kinds of diagnostic report.
    I know the report is long, maybe several hundred lines. Please post all of it anyway.

  • I am trying to sync my ipod to my laptop but it told me to restore it. i did so and it failed but there was nothing on it to restore to begin with

    I am trying to sync my ipod nano to my windows laptop. I previously synced it to a different laptop but the music didnt sync to the ipod. The previous laptop is old so I figured a newer laptop would be more sufficient. While on the new laptop it is telling me it can not be restored to manufacture settings but there is nothing on the ipod. I know i am being vague, I apologize. I am just frustrated becuase this was a christmas present for my father. Any help is greatly appreciated.

    This would have helped when my computer 1st crashed, but I had to replace that PC in May. Since then I have struggled to get my music back, which I have, but I can,t get it back on my iPod. When I looked at the area in iTunes where it sync,s my music it lists both PC,s. My old PC listing says update music,video etc. Where it has the name of my new PC it says tone only. My iTunes purchased music returned to the iPod but the majority of my music which came from my CD,s loaded to my Windows PC was missing. When I connected my iPod to my PC to sync, everything was erased from it, never to return.

  • HT1918 How do I fix the problem "intact iTunes store , there was a problem with your purchase" even though I've updated a new credit card with suffent funds available ?

    How do i resolve this issue and message- Please contact iTunes support to complete this transaction.
    There was an error with your purchase.

    I tried calling but they are closed in bservance of holiday. I want to resolve this issue now please via Internet so that I can resume my game. Thx very much for your help. Can u guide me thought this or email me the instructions as to how to resolve this step by step. It appears to me that there must have been a past billing issue.

  • Watching some movies the other night and my MacBookPro started humming like the disk drive was running, but ther was nothing in the disk drive.  Was I being hacked and is my financial info doomed?        doomed?

    On a MacBookPro useing ox 10.6 It sonded like my hard drive was spining like a disk drive. Disk drive was empty. Was I being hacked? Also the next day time machine asked where to "back up" as ther was no choises available.  It has never asked that before. 

    You were probably hearing the cooling fans speeding up to dissipate the extra heat produced by displaying movies for an extended time.
    We would need more information to figure out why you were asked about where to back up. Was your backup hard drive connected to the computer and turned on at the time?

  • TS1630 Does anyone else have a problem where you can't hear anything from your headphones when you plug them in and they play from the speakers? I checked the jack and there was nothing in it so I don't know what to do....

    I tried to listen to my music from my headphones and when I plugged the headphones into the jack, and pressed play, the music came out through the speakers. I don't know why that happened but I've never been able to get sound through my headphones.

    Contact iTunes Customer Service and request assistance
    Use this Link  >  Apple  Support  iTunes Store  Contact

  • Problem opening PDF files (There was an error opening this document. Access Denied)

    Hi Guys,
    I understand that I will need to search through all the post before I post anything (and I did googled and searched as well) but I really tried everything they suggested through the post but nothing works. I tried reinstalling the program, downgrade it from version XI to 9. But really nothing works. I can't cut/paste the file else the file will be having this error message (access denied), but if I copy/paste it, it has no problem at all. Anyone has any solution for this ?
    By the way, I am using Window XP Service Pack 3.
    Thanks.

    That is indeed something strange!  The only difference between copy/paste and cut/paste is that the original file will remain or be deleted in the original folder.  There shouldn't be any permission issue by using either method.
    Depending on your file system you should be able to see the file permissions by right-clicking on it, Properties, then select the Security tab.  See also http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/acl_set_per missions.mspx
    How are you opening the file, by double-clicking on it?  Can you open the file if you open Adobe Reader first, Open, then select that file?

  • I bought an iPad air and requested the guy at the apple store to transfer all my data from the old iPad to the new one. But when I got home there was nothing even in my photos and iBooks please help

    I bought an IPad Air a week ago and asked the guy at the apple store to have all my information and documents transferred from the old iPad to the Air. However my iBooks and photos are empty. Please help. Is there something I can do or I just have to go back to the store?

    Using the same Apple id and Password you should be able to download purchased apps without being charged again.
    I download to an iPad/iPad2/iPhone3 & iPhone4 with no problem.

  • Hello. I have a macbook pro 2011 that originally came with os lion (on the computer not a disk). What I did was I downloaded Os Mountain lion. There was nothing wrong with it but I just feel the battery life is too short. So what I did was I tried to do s

    Hello
    I have a macbook pro 2011 13" that came with OS Lion (integrated not on a disk). I recently bought OS Mountain Lion of the app store and it is working fine. However I was a bit dissapointed in the battery so I decided to try and downgrade and completely failed, I froze the computer and when I restarted it it did not work. I went into recovery system and erased my disk and all that and went to re-download my OS. I was expecting to get the option to re-download Lion but instead I could only re-download Mountain Lion.
    My question is since my computer originally came with Lion can I reset my computer so I get OS Lion back instead of OS Mountain Lion?
    Thanks for any help. Any answer will be appreciated even if it is saying it is not possible.

    Boot to the Recovery HD:
    Restart the computer and after the chime press and hold down the COMMAND and R keys until the menu screen appears. Alternatively, restart the computer and after the chime press and hold down the OPTION key until the boot manager screen appears. Select the Recovery HD and click on the downward pointing arrow button.
    Erase the hard drive:
        1.    Select Disk Utility from the main menu and click on the Continue button.
        2.    After DU loads select your startup volume (usually Macintosh HD) from the left side list. Click on the Erase tab in the DU main window.
        3.    Set the format type to Mac OS Extended (Journaled.) Click on the Erase button and wait until the process has completed.
        4.    Quit DU and return to the main menu.
    Reinstall Lion: Select Reinstall Lion and click on the Install button.
    Note: You will need an active Internet connection. I suggest using Ethernet if possible because it is three times faster than wireless.
    Kappy, a pretty wonderful and very knowledgeable man, has tip for that which I have copied and pasted above

  • How do I set page zoom? Page is to small, have trouble reading.....I never had this problem with internet explorer, there was a zoom bar at the bottom of the page.

    How do I change the zoom or text size, I have trouble reading this size.

    '''jeffmc''': First, you are using a version of Firefox that has been superceded/superseded and is no longer supported. The current version of Firefox if 6.0.2; you are using version 5.0. Consider upgrading.
    *See --> https://support.mozilla.com/en-US/kb/Updating+Firefox?bl=n&s=update%20automatically
    If you are using the Firefox button instead of the Menu Bar, you will not see "View" at the top of the browser window or on the Firefox button menu.
    *You can temporarily display the Menu Bar by pressing the ALT key or the F10 key and make the selection from the temporarily displayed Menu Bar; View > Zoom
    *You can instead, use ALT+V+Z to get to the Zoom settings
    *You can use CTRL++ to zoom in, CTRL+- to zoom out, CTRL+0 (<--that is a zero) to reset the zoom to 100%
    *See --> [http://support.mozilla.com/en-US/kb/Page+Zoom Page Zoom] '''''and''''' [http://support.mozilla.com/en-US/kb/Text+Zoom Text Zoom]
    Add-ons:
    *'''''Default FullZoom Level''''': https://addons.mozilla.org/en-US/firefox/addon/default-fullzoom-level/
    *'''''NoSquint''''': https://addons.mozilla.org/en-US/firefox/addon/nosquint/
    '''If this reply solves your problem, please click "Solved It" next to this reply when <u>signed-in</u> to the forum.'''
    Not related to your question, but...
    You may need to update some plug-ins. Check your plug-ins and update as necessary:
    *Plug-in check: https://www-trunk.stage.mozilla.com/en-US/plugincheck/
    *Adobe Shockwave for Director Netscape plug-in: [https://support.mozilla.com/en-US/kb/Using%20the%20Shockwave%20plugin%20with%20Firefox#w_installing-shockwave Installing ('''''or Updating''''') the Shockwave plugin with Firefox]
    *Adobe PDF Plug-In For Firefox and Netscape: [https://support.mozilla.com/en-US/kb/Using%20the%20Adobe%20Reader%20plugin%20with%20Firefox#w_installing-and-updating-adobe-reader Installing/Updating Adobe Reader in Firefox]
    *Shockwave Flash (Adobe Flash or Flash): [https://support.mozilla.com/en-US/kb/Managing%20the%20Flash%20plugin#w_updating-flash Updating Flash in Firefox]
    *Next Generation Java Plug-in for Mozilla browsers: [https://support.mozilla.com/en-US/kb/Using%20the%20Java%20plugin%20with%20Firefox#w_installing-or-updating-java Installing or Updating Java in Firefox]

  • I tried to listen to music on my IPhone 4S and it was very fuzzy and didn't sound right. I made sure that it wasn't the headphones and everything. I went to the apple store and they said that there was nothing they could do. HELP!!!

    HELP

    I went to two different apple stores and both people looked at it and they said that my phone definitely had major hardware issues and that the dock was broken and that the headphone jack was broken but they said that I was out of warranty so I would have to pay around $200 for a replacement or an upgrade. But I really don't want to go that because I am waiting for the newest iPhone to come out because my contract is up in November. The guy in the 1st store was surprisingly rude to me.

  • Icloud setup gives error "problem turning on Mail" "there was a problem turning on your email, try again"

    No, I don't have multiple Apple IDs. No my email address is not taken. Running IOS 6.1. Is Apple ever going to solve this?

    Have you tried the simple things first like a reboot...hold both the power and home buttons until the Apple logo appears and it restarts, ignoring the red slider if it appears?  Sometimes it is also necessary to remove and reenter a password in case it has been corrupted.  And sometimes I have just had a bad connection signal and that has been the issue.

Maybe you are looking for