So I want to have an application with multiple panels, one for the login, one that comes the login and another when we press an "add" button.
I decided to put all of these panels in the same jFrame and just use the setVisible() true or false to show the panels I want and manage the events.
The problem is that as I use netbeans, I just drag and drop the components where I want. I want the login panel to be in the middle of the frame when I run it, so I put it in the middle and the other panels on its right and left.
However, when I run the application, the login panel does not appear in the middle at all but in the left side!
And I don't know how can I manage the emplacement of the panels after running since they don't appear where I want!
A screenshot :
Visionneuse images - Noelshack