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