I am designing my GUI in netbeans IDE editor.
In editor i placed JPanel
into JFrame
.
In code I have:
setContentPane(jPanel1);
after this, jPanel1
is spreaded over JFrame
.
How can I position the JPanel
, best with layouts, so it does not spread and overlay other components?