@Override
    @SuppressWarnings("unchecked")
    public void bind(Nifty nifty, Screen screen) {
        applyButton = screen.findNiftyControl("ApplyButton", Button.class);
        ListBox<String> platformListBox
                = screen.findNiftyControl("PlatformListBox", ListBox.class);
        deviceListBox = screen.findNiftyControl("DeviceListBox", ListBox.class);
        infoLabel = screen.findNiftyControl("InfoLabel", Label.class);
        
        updateInfos();
        
        platformListBox.clear();
        for (Platform p : availablePlatforms) {
            platformListBox.addItem(p.getName());
        }
        platformListBox.selectItem(selectedPlatform);
        changePlatform(selectedPlatform);
    }
@param args the command line arguments
jme3-examples/src/main/java/jme3test/opencl/TestContextSwitching.java