RenParticleEditor adding JDesktop

Hello,



I am currently trying to add a JMEDesktop to the RenParticleEditor class. Somehow my application keeps failing when trying to create a JMEDesktop giving me these errors:

com.jmex.awt.swingui.JMEDesktop$MyPopupFactory getPopup

Popup creation failed - desktop not found in component hierarchy of null.



The lines I added to the RenParticleEditor class were these:



JPopupMenu.setDefaultLightWeightPopupEnabled(false);

Node nGUI = new Node("Swing");

nGUI.setRenderQueueMode(Renderer.QUEUE_ORTHO);



   

JMEDesktop mydesktop = new JMEDesktop("desktop");

mydesktop.setup(DisplaySystem.getDisplaySystem().getWidth(), DisplaySystem.getDisplaySystem().getHeight(),false,null);



which is just basically declaring the object, not even adding it or giving it an InputHandler.

The same happens when I give it an InputHandler. I am even using JPopupMenu.setDefaultLightWeightPopupEnabled(false);  to make the menu heavy weight problem go away, but it is not working.



Any ideas?



thanks