How i can do this?
i want to call a variable of an object:
Jlist.setListData(object.variable);
but now i want to use a reference, i try this:
SoftReference obj = new SoftReference(object);
and now i try all these options, none is util!
...JList.setListData(obj.variable);
...JList.setListData(obj.get().variable);
...Object o = obj.get();
JList.setListData(o.variable);
so i don't know how to do it!!!!
i want to call a variable of an object:
Jlist.setListData(object.variable);
but now i want to use a reference, i try this:
SoftReference obj = new SoftReference(object);
and now i try all these options, none is util!
...JList.setListData(obj.variable);
...JList.setListData(obj.get().variable);
...Object o = obj.get();
JList.setListData(o.variable);
so i don't know how to do it!!!!