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
Post a Comment