problem solved thanks guys
Type: Posts; User: kpat
problem solved thanks guys
yer but nothing. i tried messing around with the placing and setSelectedIndex(-1) and etc. any ideas?
I managed to fix the problem, after some playing around thanks to both of you.
Norm & aussiemcgr thank you both for your help and support when i had a problem.
i think adding a blank item in runtime would be better. How would i be able to do that?Sorry.
Thanks
OK, but the items are stored in the database, is there a way that i don't need to add a blank row in the database
wrong code sorry new code added
How would i do that, sorry i dont understand
no, the problem is that even when the user doesn't select an item from the JComboBox, by default the JComboBox selects the first item in the list. i dont want that to happen. do you know how to stop...
i know that an item is being selected because values for that item is being printed out.
Norm - how would i find that out?
aussiemcgr - Thats what i think is happening but i dont know how to stop that. Any ideas.
Yer the program knows what item is selected and i got it to search the database and get and display data with the item in it, but i also want it, so when no item is selected and the button is...
don't fully understand what your saying, but, ok.
The user selects an item from the JComboBox. Once they have selected item they press a JButton and an action is preformed that searchs the item...
i did that at the start but i want the selected item only when the button is pressed.
but when I press the Button without selecting an item from the JComboBox for some reason an item is selected...
nothing like that.
Hi,
I'm having trouble writing a piece of code. It's probs simple but i can't seem to be able to do it, i've tried everything i could think of. If you can provide some help i would appreciate it.