Application jframe

Hello, I’m doing a program in Java with a class that extends application with an avatar and I would like to know if I could insert my application in a jframe-jpanel. I want to show my application like the example in : http://www.adictosaltrabajo.com/tutoriales/tutoriales.php?pagina=JuegosjME → RenControlEditor.java.



The problem is I don’t know how insert the application in a JFrame-JPanel, or insert a JPanel in a application.



public class Main extends Application implements AnimEventListener, ScreenController {



public static void main(String[] args) {



AppSettings settings = new AppSettings(true);

settings.setUseInput(true);



Main app = new Main();

//settings

app.setSettings(settings);



app.start();



}



}

You can place a jme canvas in a swing gui.

https://wiki.jmonkeyengine.org/legacy/doku.php/jme3:advanced:swing_canvas

@Sploreg said:
You can place a jme canvas in a swing gui.
https://wiki.jmonkeyengine.org/legacy/doku.php/jme3:advanced:swing_canvas

Thanks, but this solution is with canvas. Is there any other solution without canvas? Thanks

Look at TestAwtPanels

@normen said:
Look at TestAwtPanels


Thanks, I think this is what I was looking for. One question, where could I download the file .jar that contains AWTPanel and AWTPanelsContext?
@normen said:
Look at TestAwtPanels


Thanks, I think this is what I was looking for. One question, where could I download the file .jar that contains AWTPanel and AWTPanelsContext?

Please read the wiki entry on how to set up jme3 in eclipse again, more thoroughly.

Thanks a lot for “normen” and “sploreg”. Finally, I follow the tutorial swing_canvas and I get to do the program. I will write the code later, if any people want to copy it, I grant permission.



Thanks