3

i have a ComboBox with the following items:

Mateus
Marina
Josefina

In swing, if i type a part of a name, e.g, 'MAR', it selects the item 'Marina', but in JavaFX, id toes nothing. The user have to search through the items by scrolling or using arrow keys (both searching the items one by one). How can i get something like this to work in JavaFX ComboBox?

Mateus Viccari
  • 7,389
  • 14
  • 65
  • 101
  • 2
    Maybe you could use an [autocomplete TextField from ControlsFX](http://fxexperience.com/controlsfx/features/) instead? – jewelsea Jul 09 '14 at 18:46
  • 1
    possible duplicate of [JavaFX - Filtered ComboBox](http://stackoverflow.com/questions/19010619/javafx-filtered-combobox) – Mansueli Jul 09 '14 at 19:14
  • actually it would be better if i had a comboBox because the user needs to see what options he can choose without spelling anything. – Mateus Viccari Jul 09 '14 at 22:20
  • @MateusViccari AutomComplete TextField has the feature of showing all the options without typing anything ! – ItachiUchiha Jul 10 '14 at 06:01
  • Alright, i already have controls fx in my project but i dont know how to create the components through fxml, and found nothing on their site... What am i missing? – Mateus Viccari Jul 10 '14 at 11:27

0 Answers0