File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Swing / AWT / SWT and the fly likes Combo Box search as user types Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Combo Box search as user types" Watch "Combo Box search as user types" New topic
Author

Combo Box search as user types

Ryan Liang
Greenhorn

Joined: May 05, 2007
Posts: 1
I want to make a edible combo box to search the list as user starts to type. In this way, the user will know what is available in the list as he/she types. It is going to be a very long list, so I don't want the user click on the drop down arrow to look for it. Thanks in advance.

For example as user starts to type R in the text field, the drop down list will show

Ran
Rani
Raw
Rock
.
.
Michael Dunn
Ranch Hand

Joined: Jun 09, 2003
Posts: 4632
> I want to make a edible combo box
> I don't want the user click on the drop down arrow
> the drop down list will show

at what point would the drop down list show?
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60057
    
  65

Originally posted by Ryan Liang:
I want to make a edible combo box ...


I find that no matter what you do to a combobox, it still tastes pretty bad. (Sorry, just couldn't leave this one alone! )


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 36513
    
  16
. . . but not as bad as that joke.
And yo haven't welcomed a new member
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 60057
    
  65

Welcome!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Combo Box search as user types
 
Similar Threads
JComboBox again
Retaining JCombo values
JCombo box auto find
Display data from combobox into Table
??? Make JComboBox drop UP instead of DOWN ???