Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8367543
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T13:11:11+00:00 2026-06-09T13:11:11+00:00

I have a large set of data from which the user has to select

  • 0

I have a large set of data from which the user has to select one. I’m thinking of a way to implement it (of course, in a GUI). I have a few ideas. But just thought of posting here as there may be better alternatives..

Say, user has to select a name from a large set of user base. If I simply put a text field for user to enter the name, then there can be issues like entering same name in different formats, misspelling etc…

I see two options here

  • Using a combo box
  • Using a list (Actually i’m thinking of something like a tool tip. As I cant show the whole list always due to space issues)

But combo box won’t be much user friendly i guess. As the user will have to scroll around the whole list to select an entry. If the number of entries are too large, this will be

Which means, now I’m left only one option. A popping up list, which will change the content according the text user is entering in the text field. So he can type first few letters and the list will show all the entries starting from the entered text. Got my point, right?

Are there any other better to achieve this kind of need?

If I’m going to implement above, what will be the best way to follow. I’m thinking of extending the JTextField to add required functionality. Well, I’ll put some method to set the popup list entries. And I’ll add some actionListner to watch the text field, and control the popup list accordingly…

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T13:11:12+00:00Added an answer on June 9, 2026 at 1:11 pm

    Autocomplete is what you are probably looking for. Google for “java swing jcombobox autocomplete” and limit results for the last couple of years to get relevant results. There will be a lot of examples and ideas on how to implement this with custom code.

    I believe there is also some custom libraries like “swingx” that provide at least partial or full implementations to save time.

    http://swingx.java.net/

    They have released code as recently as the beginning of this years so it appears active and might have what you need.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a large set of data that is generated from a web service
I have a large set of data which I access via a generator/iterator. While
I have situation where a user can manipulate a large set of data (presented
I have large data set, which I want to query. The query does not
I have fairly large set of data returned via AJAX from a page. This
Basically I have a large set of data in excel, and I was wondering
I have a large data set and I want to write a custom merge
I have a large data set that I'm working with in excel. About 1000+
Interpolating Large Datasets I have a large data set of about 0.5million records representing
I have implemented paging for a large set of data in an application by

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.