title: GridBagLayout - adding margin to constraints to move the component to top from center
body: <p>I am working on my first application to practice layout managers, I started learning the GridBagLayout and I want to create a login window, with a logo and a login box.</p>
  
  <p>Currently my app looks like this:</p>
  
  <p><a href="https://i.stack.imgur.com/g3JIq.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/g3JIq.png" alt="img"></a><br>
  <sub>(source: <a href="http://gyazo.com/a3a74033e71d4c24caa142af0ff3aa63.png" rel="nofollow noreferrer">gyazo.com</a>)</sub>  </p>
  
  <p>I feel that the logo is way too close to the login box, and far away from the top - therefore I need to find a way to give the logo a margin from the bottom, so it goes a bit to the top, so there will be a space between the two components, and the logo will be near the top bar.</p>
  
  <p>Is it possible to do with GridBagLayout?</p>
  
  <p>I've tried setting Insets, to <code>0, 0, 0, 110</code> and it moves the logo to the left a bit, not sure why.</p>
  
  <pre><code>@Override
  public void init() throws Exception {
      GridBagLayout layout = new GridBagLayout();
      super.setLayout(layout);
      this.loginPane = new JPanel();
      this.loginPane.setSize(400, 400);
      this.loginPane.setBackground(Color.RED);
      JTextField username = new JTextField();
      username.setSize(200, 45);
  
      BufferedImage logo = ImageIO.read(new File("assets/logo.png"));
      JLabel logoLabel = new JLabel(new ImageIcon(logo));
  
      GridBagConstraints t = new GridBagConstraints();
      t.ipadx = logo.getWidth();
      t.ipady = logo.getHeight();
      t.gridx = 0;
      t.gridy = 0;
  
      super.add(logoLabel, t);
      t.ipadx = 500;
      t.ipady = 300;
      t.gridwidth = 1;
      t.gridheight = 1;
      t.gridy++;
      super.add(loginPane, t);
  }
  </code></pre>
  
  <p>How can I do this?</p>