hello
how do i how do i populate jcombobox from mysql query?
Welcome to the Java Programming Forums
The professional, friendly Java community. 21,500 members and growing!
The Java Programming Forums are a community of Java programmers from all around the World. Our members have a wide range of skills and they all have one thing in common: A passion to learn and code Java. We invite beginner Java programmers right through to Java professionals to post here and share your knowledge. Become a part of the community, help others, expand your knowledge of Java and enjoy talking with like minded people. Registration is quick and best of all free. We look forward to meeting you.
>> REGISTER NOW TO START POSTING
Members have full access to the forums. Advertisements are removed for registered users.
hello
how do i how do i populate jcombobox from mysql query?
Welcome to the forum! Please read this topic to learn how to post code in code or highlight tags and other useful info for new members.
Show what you've tried, posted correctly per the above link. There are several ways, but most can be boiled down to the basic methods of populating a JComboBox with original, new, or updated contents. Refer to the JComboBox API and Oracle Tutorials for references.
how could i populate jcombobox2 from mysql depending upon the value of jcombobox1??
Threads merged.
Rather than starting a new thread on essentially the same topic, please add new information to your original post.
The answer is pretty much the same, because populating a JComboBox is accomplished using the same processes, regardless the source of the data or items that will populate it. Read the API and look at the examples in the tutorials. To influence one element of a GUI with another, add a listener to the component and perform the desired action when the listener is tripped. Again, the JComboBox tutorials will help you with this.
where are easy to understand tutorials?
I can't promise you'll find them easy to understand, but the Oracle Tutorials are written well (mostly). Here's the one for JComboBox. To find them on your own, simply Google "topic tutorial", and the Oracle Tutorial for the topic searched will normally be the first or second result. Ask questions about the tutorial that you need help with. You might also look at other tutorials on the same topic, because some find it helpful to see the same topic covered by different writers. You might also modify your search to look for videos if you prefer those.