code: public void addLabel(JPanel panel, int x, int pickerRow, String labelText) {
  
          ((GridBagLayout) panel.getLayout()).rowHeights[(pickerRow - 3)] = 6;
          JLabel label = new JLabel();
          label.setText(labelText);
          panel.add(label, new GridBagConstraints(x, (pickerRow - 2), 1, 1, 0.0, 0.0,
                  GridBagConstraints.WEST, GridBagConstraints.VERTICAL,
                  new Insets(0, 0, 0, 0), 0, 0));
          ((GridBagLayout) panel.getLayout()).rowHeights[(pickerRow - 1)] = 3;
      }
docs: JFormDesigner - End of variables declaration  //GEN-END:variables