|
I have a .instance file. How do I get an actual object instance |
|
|
Using InstanceCookie (note that if you have an entire folder of .instance files, there's a more efficient way to get all of them):
DataObject dob = DataObject.find (theDotInstanceFileObject);
InstanceCookie ck = (InstanceCookie) dob.getCookie (InstanceCookie.class);
MyObject obj = (MyObject) ck.instanceCreate();
|
Source: NetBeans FAQ
Related Tips
|
Page 1 of 0 ( 0 comments )
You can share your information about this topic using the form below!
Please do not post your questions with this form! Thanks.