I am going crazy over this....need help please !!!

I have one textfield and one combobox and a button. When the button is pushed, if there is textfield is blank and the combobox is set to "Make a Selectio.." I want to see a JOption message. Here is what I have but my combobox is not working. I get a compile time error. I think I need to declare "getSelectionItem" somewhere but where and how......, that I don't know.
if (source == DataFind)
try
//Create Statement object
Statement s = c.createStatement();
String query = "SELECT * FROM Data";
if (txtName.getText().trim().equals("") &&
txtID.getText().trim().equals("") &&
cmbColor.getSelectedItem.equals("Make a Selection.....")])
JOptionPane.showMessageDialog(null, "You must ....!", "Error", JOptionPane.ERROR_MESSAGE);
else
String Name = "WHERE Name = '" + txtName.getText() + "'";
//Create the ResultSet object
ResultSet result = s.executeQuery(query);
char Color;
int ID;
while (result.next())
Name = result.getString(1);
Color = result.getString(2).charAt(0);
ID = result.getInt(3);
output.setText(Name + " " + Color + " " + ID);
}

With only a quick look, could the square bracket be the compile problem?
cmbColor.getSelectedItem.equals("Make a Selection.....")])

Similar Messages

  • Im going Crazy!! Need Help Fast!!

    I cannot Get Videos On my ipod and im Loosing my mind!!! can some one please Try and help me!! ive hit rock Bottom with this one!! no one can seem to help me!!

    Weird...itunes 7 is really messed up! One time I plugged in my ipod and it showed up as a 2nd generation ipod! So when I unplugged it and plugged it back in it was back to normal, im guessing that should solve your problem. If my post solved, or helped your problem, please mark it accordingly. Its a nice way of saying thank you in discussions ;)--Thanks for helping the boards!
    kEat0n

  • Safari keeps redirecting almost every page to other pages ... going crazy with this any help ??

    Since 6 months or more ... Safari keeps having a life off its own ...
    I constantly have to go back 1 or 2 pages to get where I want ...
    it not even after a google search or so ...
    I go to a site and hop ... "mackleener" shows up "groupon" is there all the time ...
    or the page turns grey saying ... no page found ... with a long link starting with groupiesearch blabla ..
    it starting to be sooooo enoying that I want to throw out Safari ... but Im so used to this browser now that I actiually dont want to change..
    All my pages info stuff is build in Safari for years so I dont want to restart with Firefox from zero ...
    any help on this matter would be a timesaver ...
    Thank YOU
    Franky

    Ok...  use Open DNS to avoid redirects.
    Use OpenDNS for better speed and more security and it's free.
    Open System Preferences / Preferences then select the Network tab. Click the Advanced tab then click the DNS tab.
    Enter these numbers exactly as you see them here.
    Click +
    208.67.222.222
    Click +
    208.67.220.220
    Then click OK.
    More about OpenDNS here.
    Topic : Manually provided DNS server addresses are higher priority than DHCP's

  • HT201412 My ipod screen is black with white and gray lines all over; i need help please!My ipod also won't respond to any button pressing and nothing shows/syncs on itunes

    I was using my ipod when the screen froze,then it went black/gray with messedup pixels and lines everywhere.I already tried plugging it in and connecting it to my computer,but nothings shows up in itunes, and my ipod doesn't respond to any buttons.Plus it won't go off.Someone please help; i don't want to have to replace it.

    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       

  • Hi i need help please i been playing clash of clans over 13 months. And today o realise what someone using my game Centra. Someone playing on my game Clash of Clans. I been change my Apple ID password, email, but doesn't work. Then I playing game I can se

    Hi i need help please i been playing clash of clans over 13 months. And today o realise what someone using my game Centra. Someone playing on my game Clash of Clans. I been change my Apple ID password, email, but doesn't work. When I playing game I can see what someone else trying connecting to my game And I don't know what to do.So if you can help me please? I don't wanna lose my game. 

    Hello Vaidas Vaidas,
    It sounds like you are noticing someone else is accessing your Clash of Clans data by playing the game and you have tried to reset your Apple ID password. If you are following the steps outlined in this article:
    Apple ID: Changing your password
    http://support.apple.com/kb/ht5624
    What is preventing you from changing your password? Any error messages or prompts?
    Thank you for using Apple Support Communities.
    All the best,
    Sterling

  • HT4314 Hi i need help please i been playing clash of clans over 13 months. And today o realise what someone using my game Centra. Someone playing on my game Clash of Clans. I been change my Apple ID password, email, but doesn't work. Then I playing game I

    Hi i need help please i been playing clash of clans over 13 months. And today o realise what someone using my game Centra. Someone playing on my game Clash of Clans. I been change my Apple ID password, email, but doesn't work. Then I playing game I can see what someone else trying connecting to my game And I don't know what to do.So if you can help me please? I don't wanna lose my game.

    Contact iTunes
    Contact iTunes

  • After many months of non-use, when I opened Photoshop CS4 Extended, I got an error message 148.3.  "Licensing for this product has stopped working."  I need help, please.

    After many months of non-use, when I tried to open Photoshop CS4 Extended, I got an error message 148.3.  "Licensing for this product has stopped working."  I need help, please.

    Error "Licensing has stopped working" | Windows
    Error "Licensing has stopped working" | Mac OS
    Mylenium

  • HT201413 I need help please!!!!! My iPhone 4 s won't charge!!!!! I get error message 21. How can I get around this.

    I need help please I keep getting error messega 21 when i try uploading my iPhone 4 s!!!!!!!!! omg some one please tell me if and how to fix this please. thank you!!!

    Hopefully this link will help you: http://support.apple.com/kb/HT2109

  • TS1702 Hello, I,m having problems with Polish spell check. It says in iPnstruction that this App (pages) should show my writing mistakes. Check spell button is on but but check spell is not working. Need help Please.

    Hello, I,m having problems with Polish spell check. It says in iPnstruction that this App (pages) should show my writing mistakes. Check spell button is on but but check spell is not working. Need help Please.

    Hello, I,m having problems with Polish spell check. It says in iPnstruction that this App (pages) should show my writing mistakes. Check spell button is on but but check spell is not working. Need help Please.

  • I can not play any games on the new ipad 32 G wifi after take over to  oversea , need help please

    After I turn off Airplane mode and I want to play games when was downloaded before fly to oversea. I was palying all games on ipad before fly.
    now when I turn on ipad and want to paly games but It can not play games on ipad.???
    Anyone can fit it on setting?
    Need help please.
    Thank you.

    OK. I am having a little bit of trouble understanding your responses, but let's start with this since you are having an issue with other apps as well.
    Reboot your iPad.
    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 - let go of the buttons. Let the iPad start up completely and then try again.

  • I cannot install ODX Yosemite over OSX Mavericks as my Mac Book Pro (early 2011) advises that the disc "Mackintosh HD" is used for Time Machine back ups. This is not the case however as I use a separate external HD for this purpose, help please ?!  T

    I cannot install ODX Yosemite over OSX Mavericks as my Mac Book Pro (early 2011) advises that the disc "Mackintosh HD" is used for Time Machine back ups. This is not the case however as I use a separate external HD for this purpose, help please ?!
    Thanks

    Check this link out...
    OS X: Cannot install on a volume used by Time Machine for backups
    I was apart of this thread and it helped the OP...
    Re: System installer thinks my main drive is my time Machine backup and won't install.
    KOT

  • In Yahoo Mail, when composing an email I get an "Asking to leave this page" panel; it does not matter whether i choose stay or leave, the panel pops up again....and again...the only way out is to Force Quite Firefox and start all over...help please...

    In Yahoo Mail, when composing an email I get an "Asking to leave this page" panel; it does not matter whether i choose stay or leave, the panel pops up again....and again...the only way out is to Force Quite Firefox and start all over...help please...

    Thanks for responding....but isn't your potential solution designed for Windows users? I have a Mac.
    If it does apply to Mac, I am also hoping for something simpler as this could take weeks to isolate the problem and it would be more efficient to use another browser for mail
    Also, I should have added, this problem occurs only occasionally and seemingly only when I am taking some time to compose a message

  • HP Pavilion a6000 desktop with Vista black screen - need help please!

    I have an HP Pavilion a6000 desktop with Vista.  Yesterday it was working fine and today we have the black screen that reads: 
    Award BootBlock BIOS v1.0
    Copyright (c) 2000, Award Software, Inc.
    BIOS ROM checksum error
    Detecting IDE ATAPI device...
    Found CDROM, try to boot from it...Fail
    Detecting IDE ATAPI device...
    Detecting IDE ATAPI device...
    Detecting floppy drive A media...
    Drive A error.  System halt
    I am not a techie, but looked at online forums and have tried f10 at startup with no change to the screen other than it stops after the first four lines and does not try the floppy drive.  I also pulled out the round battery, waited and then reintstalled.  Same problem.  
    Also, computer emits a single, repeating beep after startup.
    HELP!

    jjeahall
    I saw your post and wanted to comment. I'm not an expert on these types of situations but did some digging around and found the following at Tips4PC.com.... read below
    "There are two types of computer black screens that can appear in Windows. One where the computer will not boot up but you have a beep sequence sounding to let you know what the problem could be, and the other has nothing at all. No beeps, no cursor, no logo screen, and no choice to boot to safe mode or access the bios.
    If your computer will not boot up and you get a beep sequence, I am not saying it is good news, however it is a step in the right direction towards solving this problem. This is a message from your computer that can be understood by looking up your bios (the brand) beep code. For example you may have an Award Bios, Ami Bios, Phoenix BIOS, Compaq, Dell, or Acer Bios. This list goes on and on.  You can search for Bios beep codes in Google. Here is an example of results in Google search"
    Link
    Also  I went into the Troubleshooting Guide for the A6000  and found the following information.  You need to use F11 for recovery. See below
    Starting System Recovery from system startup
    1
    Turn off the computer. If necessary, press and hold the On button until the computer
    turns off.
    2
    Remove the HP Personal Media Drive if your computer includes one. Disconnect all
    peripheral devices from the computer except the monitor, the keyboard, and the
    mouse.
    3
    Press the On button to turn on the computer.
    4
    During the startup, do the following to enter the Recovery Manager program:
    When the blue screen with the HP Invent logo appears, press the F11 key on the
    keyboard. (You have only a few seconds to press the F11 key before the normal
    startup process continues.)
    5
    The computer starts the Recovery Manager program; wait for the onscreen instructions
    to display, and then follow those instructions.
    6
    Complete the computer startup, finish the registration process, and wait until you see
    the desktop. Then, turn off the computer, reconnect all peripheral devices, and turn on
    the computer.
    I am an HP employee.
    Regards,
    Cooper56
    If you’ve found this information helpful, please make it easier for others who might be experiencing a similar type issue by marking my answer as “Accept as Solution” .
    ***Of course you can also Click on “Kudos” STAR to say thanks!***
    I work for HP. When your problem has been solved, accept the solution by clicking the "Accept as Solution" button to help other members in the future!

  • I had a problem with my itunes so i had went on itunes website and reinstall itunes for windows and after it complete it said that the feature yoy are trying to use is on a network resource that is unavailable i need help please!!!!!!!!!

    had a problem with my itunes so i had went on itunes website and reinstall itunes for windows and after it complete it said that the feature yoy are trying to use is on a network resource that is unavailable i need help please!!!!!!!!!

    first, head into your Add/Remove programs and uninstall your QuickTime. if it goes, good. if it doesn't, we'll just attend to it when we attend to itunes.
    next, download and install the revo uninstaller http://http://www.revouninstaller.com/revo_uninstaller_free_download.html. use it to clear any existing itunes and/or QuickTime installation configuration information from the PC.
           next download itunes. it worked for me hope this is helpful!!
        oonce you get into the revo uninstallergo thru to delete itunes hit uninstall on the itunes icon then you will go thru to it will tell u the same nmessage about the feature and network hit cancell then go thru and hit scan (make sure bthe advance scan button is pushed) this will take awhile but go thru the list and hit everything associated with itunes. hit delete then install itunes again. it worked for me hope it works for you!

  • I dont know how i got my photos to my ipod touch from my pc and now i wanna delete them but couldn't. so need help. please let me know.

    i dont know how i got my photos to my ipod touch from my pc and now i wanna delete them but couldn't. so need help. please let me know.

    To turn off auto sync - launch iTunes and go to Edit>Preferences>Devices - check the box at the bottom that says - Prevent iPod, iPhones and iPads from syncing automatically. Click OK and then quit iTunes.
    Connect your iDevice to your PC.
    Launch iTunes,
    Click on the device name on the left side of the iTunes Window.
    Click on the Photos Tab in the iTunes window on the right.
    Untick all of the photos or albums that you want to remove.
    Click on Apply in the lower right corner of iTunes
    If you untick or uncheck the Sync Photos heading and then click Apply it will remove all of the photos from the device when it syncs. In this screenshot - I have only certain albums and events selected to sync.

Maybe you are looking for