| is a simple implementation of
ListModelSharer
To use this class, you should create a global
ListModel first,
and then create
with the global list model.
ListModel globalModel = new ListModelList();
SimpleSharedListModel sharedModel = new SimpleSharedListModel(globalModel);
Then, in each desktop, you get a proxy by call
SimpleListModelSharer.getProxy(Desktop) and associate it to listbox or gird.
ListModel model = sharedModel.getProxy(desktop);
listbox.setModel(model);
author: Dennis.Chen since: 3.0.0 |