Grid constant - Layout manager in java : I just made a small program by adding button in my GUI using Gridbagconstraint in layout manager in Java the location of the button is always in center irrespective of the coordinates given. please help me


package StudentInfo;

import javax.swing.*;
import java.awt.*;

public class Gui {

    public static void main(String[] args) {
        JFrame frame = new JFrame();
        JPanel panel = new JPanel();

        frame.add(panel);
        panel.setLayout(new GridBagLayout());
        frame.setSize(600,600);
        frame.setVisible(true);
        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        frame.setResizable(false);

        GridBagConstraints gbc = new GridBagConstraints();

        JButton b = new JButton("Hello");
        gbc.gridx=1;
        gbc.gridy=1;
        panel.add(b,gbc);

        JButton v = new JButton("exit");
        gbc.gridx=1;
        gbc.gridx=0;
        panel.add(v,gbc);

    }
}
[output][2]`


  [2]: https://i.stack.imgur.com/clVr9.png