Which Swing layout manager to get my desired layout?
问题 I am trying to make a basic login menu following this mock up : I decided to put this whole menu into a JPanel so I can switch to another panel once the connexion is successful. So I decided to use a Borderlayout to have the title in north area and the connect button in the south area . I made the center of the borderlayout a panel itself . I decided to make it a gridlayout to both have the labels(login,password) but also the textfield in which the user will put his id. The result is very