Is it possible to connect a Frame created in a JFrame, and how to achieve it?

0

] 2

In the palette there is a Frame option that creates a window inside another window, however, I do not know how to connect them through a button or if this is possible. The window created normally with the JFrame form if it appears in the package, the other does not (the one created when using the Frame section of the palette).

    
asked by Asuna Verdejo 14.04.2017 в 14:06
source

2 answers

0

Regarding the question how to connect them, these are Jframes so in the button where you want to call them you only have to put:

NombreJframe.setVisible(true);
    
answered by 15.04.2017 в 07:06
0

Probably because you have not defined a size in your main constructor just like this:

initComponents();
NombreJframe.setSize(WIDTH, WIDTH);

and inside you put the size you want.

    
answered by 21.04.2017 в 22:51