this is a very easy code because I just started learning java. how do I move the button to specific position/points. Please be brief and make your answer simple and easy to understand because I just started learning java.
this is my code:
            import javax.swing.*;
            import java.awt.*;
            import java.awt.event.*;
            public class finals extends JFrame implements ActionListener{
                JButton login = new JButton("Log-In");
                JButton enroll = new JButton("Enroll");
                JPanel con = new JPanel();
                JFrame frame = new JFrame();
                public finals(){
                    frame.setTitle("Enrollment");
                    setContentPane(con);
                    setLayout(new FlowLayout());
                    login.setLocation(122, 120);
                    con.add(login);
                    System.out.println(login.getLocation());
                    frame.add(con);
                    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
                    frame.setSize(300,150);
                    frame.setVisible(true);
                }
                public void actionPerformed(ActionEvent e){
                }
                public static void main(String Args[]){
                    new finals();
                }
            }
 
    