Swing and nifty gui integration

i use some code from documentation:

Main app = new Main();
        
        app.createCanvas(); 
        JmeCanvasContext ctx = (JmeCanvasContext)app.getContext();
        ctx.setSystemListener(app);
        Dimension dim = new Dimension(640, 480);
        ctx.getCanvas().setPreferredSize(dim);
        
        JFrame window = new JFrame("Swing Application");
        window.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        
        JPanel panel = new JPanel(new FlowLayout()); // a panel
        // add all your Swing components ...
        panel.add(new JButton("Some Swing Component"));
        // add the JME canvas
        panel.add(ctx.getCanvas());
        
        window.add(panel);
        window.pack();
        window.setVisible(true);
        
        app.startCanvas();

and i have this

(image)

interface next to the window of the game, how to integrate it into the window?

I wanted to try but why nifty gui developer site editor to ask for authorization.

What advise to use? Is there a detailed manual?

I’m not sure exactly what it is that you are trying to do? I got the impression that you want to switch from Swing to Nifty from the text.

Here is the Nifty manual, depending on what JME version you are using it may be over dated but still quite accurate:

You could also take a look at the jME nifty tutorials, although they aren’t as detailed as the 100+ pages manual that @tonihele posted.
Here’s the link:
https://jmonkeyengine.github.io/wiki/jme3/advanced/nifty_gui.html