Hi,
I modified the PhidgetControlPanel example to include the following lines:
Code:
manager = new Manager();
attach_listener = new ManagerAttachListener(this, this.deviceTbl);
detach_listener = new ManagerDetachListener(this, this.deviceTbl);
manager.addAttachListener(attach_listener);
manager.addDetachListener(detach_listener);
manager.open();
**addition**
Vector phidgets = manager.getPhidgets();
Boolean list_2=phidgets.isEmpty();
jTextArea1.insert(list_2.toString(), 0x0);
**end of addition**
jTextArea1 is just a text box in the panel. I'm using NetBeans.
The *.isEmpty() method always returns true, however, i can see the model and name of the attached stepper motor controller. See attached image for the exact output.