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.

Results 1 to 6 of 6

Thread: how could i populate jcombobox2 from mysql depending upon the value of jcombobox1??

  1. #1
    Junior Member
    Join Date
    Sep 2014
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default how do i populate jcombobox from mysql query?

    hello

    how do i how do i populate jcombobox from mysql query?


  2. #2
    Super Moderator
    Join Date
    Jun 2013
    Location
    So. Maryland, USA
    Posts
    5,517
    My Mood
    Mellow
    Thanks
    215
    Thanked 698 Times in 680 Posts

    Default Re: 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.

  3. #3
    Junior Member
    Join Date
    Sep 2014
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default how could i populate jcombobox2 from mysql depending upon the value of jcombobox1??

    how could i populate jcombobox2 from mysql depending upon the value of jcombobox1??

  4. #4
    Super Moderator
    Join Date
    Jun 2013
    Location
    So. Maryland, USA
    Posts
    5,517
    My Mood
    Mellow
    Thanks
    215
    Thanked 698 Times in 680 Posts

    Default Re: 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.

  5. #5
    Junior Member
    Join Date
    Sep 2014
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Default Re: how could i populate jcombobox2 from mysql depending upon the value of jcombobox1??

    where are easy to understand tutorials?

  6. #6
    Super Moderator
    Join Date
    Jun 2013
    Location
    So. Maryland, USA
    Posts
    5,517
    My Mood
    Mellow
    Thanks
    215
    Thanked 698 Times in 680 Posts

    Default Re: how could i populate jcombobox2 from mysql depending upon the value of jcombobox1??

    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.

Similar Threads

  1. how do i populate jcombobox from mysql query?
    By ankit1122 in forum What's Wrong With My Code?
    Replies: 1
    Last Post: September 13th, 2014, 05:15 AM
  2. On-line Java Tutor Wanted !!! (Will pay depending on outcome of assistances)
    By FundamentalLearner in forum Paid Java Projects
    Replies: 3
    Last Post: November 11th, 2013, 01:45 AM
  3. How to Format output of a BSTree depending on the traversal being used?
    By SarahDoesIt in forum What's Wrong With My Code?
    Replies: 0
    Last Post: November 11th, 2012, 05:28 PM
  4. Declaring floating point number depending on an if statement
    By Keys767 in forum What's Wrong With My Code?
    Replies: 2
    Last Post: August 11th, 2011, 01:50 PM
  5. Calling the actionlistener class depending on variables
    By zidsal in forum Java Theory & Questions
    Replies: 3
    Last Post: January 5th, 2011, 08:52 AM

Tags for this Thread