Skip to content
Advertisement

Tag: listview

notifyDataSetChanged(); not refreshing ListView?

I’m working on a notes app and I’m running into trouble deleting notes: after the note is deleted, it still shows in the listview. I’m trying to use notifyDataSetChanged(), but it doesn’t seem to be working for me. MainActivity: Answer You are setting adapter with a list: na.notifyDataSetChanged(); will only work if your notes list is changed. And I don’t

JavaFX search in listview

I want to search in listview and my code is working but not well enough. The problem is when i write few characters in the search text field not only the result appears, but the rest of the items also appear… The code: Photos: Original list: Sorted list: ListCell implementation: Answer Your problem is not in your filter logic. I

Advertisement