Hi I am trying get user info from the database into the textbox when i select Usename Which is stored in the drop down. so could any help how to get all usernames into dropdown and when i select any usenames i should get all details into the text box.........please elp me
rakesh.mk 0
Newbie Poster
Recommended Answers
Jump to PostHi I am trying get user info from the database into the textbox when i select Usename Which is stored in the drop down. so could any help how to get all usernames into dropdown and when i select any usenames i should get all details into the text box.........please …
Jump to PostThis all depends entirely on where your usernames are stored. In a database? A file? Hard-coded?(better not be)
Open the Java API docs and review the contructors for JComboBox (assuming you plan to use the Swing framework) and that'll give you some ideas on how to add usernames to …
Jump to PostOk thanks for your help, Actually i need to edit the user information which is stored in the mysql database, for that i need to fetch the data from database for perticular user. I have written java class in that I am storing all the usernames in an Array list. …
Jump to PostNext time be more clear about what is your problem. From what I understood you don't know how to get and use the username from the comboBox?
If yes assume that you have a String username variable. For getting the value from a comboBox that has String elements do …
All 13 Replies
stultuske 1,116
Posting Maven Featured Poster
Phaelax 52
Practically a Posting Shark
rakesh.mk 0
Newbie Poster
rakesh.mk 0
Newbie Poster
puneetkay 40
Junior Poster
rakesh.mk 0
Newbie Poster
javaAddict 900
Nearly a Senior Poster Team Colleague Featured Poster
rakesh.mk 0
Newbie Poster
peter_budo 2,532
Code tags enforcer Team Colleague Featured Poster
javaAddict 900
Nearly a Senior Poster Team Colleague Featured Poster
rakesh.mk 0
Newbie Poster
rakesh.mk 0
Newbie Poster
peter_budo 2,532
Code tags enforcer Team Colleague Featured Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.