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.


Members have full access to the forums. Advertisements are removed for registered users.

Results 1 to 2 of 2

Thread: Searching using a jtextfield

  1. #1
    Junior Member
    Join Date
    Jul 2014
    Thanked 0 Times in 0 Posts

    Default Searching using a jtextfield

    I would like to search for a particular item such as an "apple" from table of fruits in the database and the results are populated either into a jframe table or a textArea! please help me!

  2. #2
    Super Moderator
    Join Date
    Jun 2013
    So. Maryland, USA
    My Mood
    Thanked 698 Times in 680 Posts

    Default Re: Searching using a jtextfield

    Thread moved.

    Welcome to the Forum! Please read this topic to learn how to post code correctly and other useful tips for newcomers.

    This is a common capability, requested frequently, but I've never seen a good example of it come through here. You may find an example on the web somewhere.

    The mechanics are fairly simple: Write a textfield listener that performs the search for the text entered into the textfield. You'll have to write the mechanics that perform the search and present the results.

    Maybe you'll post the first good example here. Good luck!

Similar Threads

  1. [SOLVED] Searching a Stach
    By ProgrammablePeter in forum Algorithms & Recursion
    Replies: 0
    Last Post: April 3rd, 2014, 07:04 AM
  2. Searching arrays
    By camaleonx13 in forum What's Wrong With My Code?
    Replies: 2
    Last Post: October 1st, 2013, 04:43 AM
  3. Searching
    By killer3p0 in forum What's Wrong With My Code?
    Replies: 4
    Last Post: May 17th, 2012, 08:06 AM
  4. [SOLVED] Searching issues.
    By Saintroi in forum What's Wrong With My Code?
    Replies: 2
    Last Post: April 28th, 2012, 07:26 PM
  5. searching a string
    By dvsumosize in forum What's Wrong With My Code?
    Replies: 1
    Last Post: February 23rd, 2010, 01:31 AM