i have
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.setSize(900,900);
JPanel panel = new JPanel();
JButton button1 = new JButton("Button 1");
button1.setSize(50, 50);
panel.add(button1);
panel.setSize(50, 50);
panel.setLocation(50, 50);
frame.add(panel);
frame.setVisible(true);```
but the button isnt going to the location 50, 50, its at the top center of the gui and it isnt moving no matter what location i set it to go