Код: Выделить всё
@FXML
public TextField locationSearchTextField;
< /code>
....
List locationList = new ArrayList();
locationList.add("String1");
locationList.add("String2");
locationList.add("String3");
TextFields.bindAutoCompletion(locationSearchTextField, locationList);
< /code>
main.fxml file < /p>
Код: Выделить всё
/*.text-field .list-view */
/*.text-field .list-cell*/
/*.text-field .list-view .list-cell*/
/*.text-input-dialog.dialog-pane*/
/*.text-field .context-menu*/
/*.text-field .table-view*/
/*.text-field > * > .list-view*/
/*.text-field-popup > .list-view,*/
/*.text-field-popup > .list-view > .virtual-flow > .clipped-container > .sheet > .list-cell*/
/*.list-view*/
/*.list-view .list-cell*/
{
-fx-background-color: purple;
-fx-border-width: 1px;
-fx-border-color: blue;
}
Подробнее здесь: https://stackoverflow.com/questions/796 ... -up-window