@NiftyEventSubscriber(id="DeviceListBox")
    public void onDeviceChanged(String id, ListBoxSelectionChangedEvent<String> event) {
        String d = event.getSelection().isEmpty() ? null : event.getSelection().get(0);
        LOG.log(Level.INFO, "Selected device changed to {0}", d);
        selectedDevice = d;
    }
@param args the command line arguments
jme3-examples/src/main/java/jme3test/opencl/TestContextSwitching.java