0

i want to place a button on upper left corner of JFrame with GridBagLayout.i write this code but it is notwork correctly

        gbc.gridx=0;
        gbc.gridx=0;
          add(b1,gbc);

but the button place on center of JFrame why

2
Contributors
1
Reply
12
Views
4 Years
Discussion Span
Last Post by JamesCherrill
This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.