java - How to notify ListModel that ArrayList have changed -


i notify listmodel arraylist have been modified.

my arraylist automatically updated after create every person by:

new person(...); 

it achieved add every person arraylist @ end of person constructor. listmodel listen changes in arraylist. arraylist part of hashmap<class, arraylist> instances of every class stored.

how notify listmodel arraylist have been changed?

notice: don't mean: how make listmodel notify jlist.

use observablelist instead of arraylist , register observablelistlistener on listmodel

or simplicty sake, use property change listener


Comments

Popular posts from this blog

javascript - gulp-nodemon - nodejs restart after file change - Error: listen EADDRINUSE events.js:85 -

Fatal Python error: Py_Initialize: unable to load the file system codec. ImportError: No module named 'encodings' -

javascript - oscilloscope of speaker input stops rendering after a few seconds -