@NiftyEventSubscriber(id="ApplyButton")
    public void onButton(String id, ButtonClickedEvent event) {
        LOG.log(Level.INFO, "Change context: platform={0}, device={1}", new Object[]{selectedPlatform, selectedDevice});
        restart();
    }
@param args the command line arguments
jme3-examples/src/main/java/jme3test/opencl/TestContextSwitching.java