@Override
  public void stateAttached(final AppStateManager stateManager) {
    processor = new AWTFrameProcessor();
    processor.setTransferMode(transferMode);

    AWTTaskExecutor.getInstance().addToExecute(new Runnable() {

      @Override
      public void run() {
        processor.bind(component, stateManager.getApplication(), stateManager.getApplication().getViewPort());
      }
      
    });
  }
An app state dedicated to the rendering of a JMonkey application within an AWT component.
@author Julien Seinturier - COMEX SA - <a href="http://www.seinturier.fr">http://www.seinturier.fr</a>
jme3-desktop/src/main/java/com/jme3/app/state/AWTComponentAppState.java