sshahine / JFoenix

JavaFX Material Design Library
MIT License
6.27k stars 1.05k forks source link

JfxHighlighter not working properly in ListView #1132

Closed gchariharan closed 3 years ago

gchariharan commented 3 years ago

Hi, I tried to use the JfxHighlighter to highlight the contents in the listview. I used the below line JFXNodeUtils.addDelayedEventHandler(searchText, Duration.millis(400), KeyEvent.KEY_TYPED, event -> jfxHighlighter.highlight(availableSignalsList, searchText.getText()));

It works properly until you scroll on the list view. My filtered list is so big that i need to scroll the listview. When i scroll the listview, it is not highlighting anything.

jfoenixadmin commented 3 years ago

Hi, ListView updates the cells contents on scroll, thus you need to add some scroll listeners to refresh the highlighter.

Regards,