Skip to content

Instantly share code, notes, and snippets.

View Faoc's full-sized avatar

Fabian Ochmann Faoc

  • Germany
View GitHub Profile
@Faoc
Faoc / AutoCompleteTextBox.java
Last active April 12, 2023 05:47 — forked from floralvikings/AutoCompleteTextBox.java
Simple JavaFX TextBox with AutoComplete functionality based on a supplied set.
import javafx.beans.value.ChangeListener;
import javafx.beans.value.ObservableValue;
import javafx.event.ActionEvent;
import javafx.event.EventHandler;
import javafx.geometry.Side;
import javafx.scene.control.ContextMenu;
import javafx.scene.control.CustomMenuItem;
import javafx.scene.control.TextField;