Salve, ho difficoltà ha posizionare un bottone
frame2=new JFrame();
Label l1=new Label("Nome utente");
Label l2=new Label("Password");
JTextField Nome_,Cognome_,Email_;
Nome_=new JTextField();
Cognome_=new JTextField();
Email_=new JTextField();
JButton Salva3=new JButton("ok");
frame.getContentPane().setLayout(new BoxLayout(frame.getContentPane(), BoxLayout.PAGE_AXIS));
frame.getContentPane().add(l1);
frame.getContentPane().add(Nome_);
frame.getContentPane().add(l2);
frame.getContentPane().add(Cognome_);
frame.getContentPane().add(Salva3, BorderLayout.SOUTH);
/*Imposto la dimensione della Label,JTextField e JButton*/
l1.setMaximumSize(new Dimension(150,30));
Nome_.setMaximumSize(new Dimension(150,30));
l2.setMaximumSize(new Dimension(150,30));
Cognome_.setMaximumSize(new Dimension(150,30));
Email_.setMaximumSize(new Dimension(150,30));
Salva3.setMaximumSize(new Dimension(60,30));
Salva3.setLocation(10, 10);
frame.setLocation(100,100);
frame.setSize(new Dimension(300,500));
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.setVisible(true);