gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
    private void initComponents() {//GEN-BEGIN:initComponents        java.awt.GridBagConstraints gridBagConstraints;        weaponPanelPanel = new javax.swing.JPanel();        isWeaponBoxPanel = new javax.swing.JPanel();        isWeaponCheckBox = new javax.swing.JCheckBox();        jPanel1 = new javax.swing.JPanel();        dataPanel = new javax.swing.JPanel();        nameField = new javax.swing.JTextField();        minCounterSpinner = new javax.swing.JSpinner();        maxCounterSpinner = new javax.swing.JSpinner();        defaultCounterSpinner = new javax.swing.JSpinner();        jLabel1 = new javax.swing.JLabel();        jLabel2 = new javax.swing.JLabel();        jLabel3 = new javax.swing.JLabel();        pointcostField = new javax.swing.JTextField();        jLabel4 = new javax.swing.JLabel();        pointcostPerModelCheckbox = new javax.swing.JCheckBox();        delButton = new javax.swing.JButton();        moveButtonsPanel = new javax.swing.JPanel();        moveUpButton = new javax.swing.JButton();        moveDownButton = new javax.swing.JButton();        setLayout(new java.awt.BorderLayout());        setBorder(new javax.swing.border.LineBorder(new java.awt.Color(0, 0, 0)));        weaponPanelPanel.setLayout(new java.awt.BorderLayout());        isWeaponCheckBox.setText("is weapon");        isWeaponCheckBox.addActionListener(new java.awt.event.ActionListener() {            public void actionPerformed(java.awt.event.ActionEvent evt) {                isWeaponCheckBoxActionPerformed(evt);            }        });        isWeaponBoxPanel.add(isWeaponCheckBox);        weaponPanelPanel.add(isWeaponBoxPanel, java.awt.BorderLayout.CENTER);        add(weaponPanelPanel, java.awt.BorderLayout.CENTER);        jPanel1.setLayout(new java.awt.BorderLayout());        dataPanel.setLayout(new java.awt.GridBagLayout());        nameField.setFont(new java.awt.Font("Dialog", 1, 14));        nameField.setText("jTextField1");        nameField.setMaximumSize(new java.awt.Dimension(200, 23));        nameField.setMinimumSize(new java.awt.Dimension(200, 23));        nameField.setPreferredSize(new java.awt.Dimension(200, 23));        gridBagConstraints = new java.awt.GridBagConstraints();        gridBagConstraints.gridx = 1;        gridBagConstraints.gridy = 1;        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;        dataPanel.add(nameField, gridBagConstraints);        gridBagConstraints = new java.awt.GridBagConstraints();        gridBagConstraints.gridx = 2;        gridBagConstraints.gridy = 1;        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;        dataPanel.add(minCounterSpinner, gridBagConstraints);        gridBagConstraints = new java.awt.GridBagConstraints();        gridBagConstraints.gridx = 3;        gridBagConstraints.gridy = 1;        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;        dataPanel.add(maxCounterSpinner, gridBagConstraints);        gridBagConstraints = new java.awt.GridBagConstraints();        gridBagConstraints.gridx = 4;        gridBagConstraints.gridy = 1;        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;        dataPanel.add(defaultCounterSpinner, gridBagConstraints);        jLabel1.setText("min");        gridBagConstraints = new java.awt.GridBagConstraints();        gridBagConstraints.gridx = 2;        gridBagConstraints.gridy = 0;        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;        dataPanel.add(jLabel1, gridBagConstraints);        jLabel2.setText("max");        gridBagConstraints = new java.awt.GridBagConstraints();        gridBagConstraints.gridx = 3;        gridBagConstraints.gridy = 0;        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;        dataPanel.add(jLabel2, gridBagConstraints);        jLabel3.setText("default");        gridBagConstraints = new java.awt.GridBagConstraints();        gridBagConstraints.gridx = 4;        gridBagConstraints.gridy = 0;        gridBagConstraints.insets = new java.awt.Insets(0, 0, 0, 4);        gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;        dataPanel.add(jLabel3, gridBagConstraints);        pointcostField.setText("jTextField1");        pointcostField.setMaximumSize(new java.awt.Dimension(30, 23));        pointcostField.setMinimumSize(new java.awt.Dimension(30, 23));        pointcostField.setPreferredSize(new java.awt.Dimension(30, 23));        gridBagConstraints = new java.awt.GridBagConstraints();        gridBagConstraints.gridx = 5;        gridBagConstraints.gridy = 1;        dataPanel.add(pointcostField, gridBagConstraints);        jLabel4.setText("points");        gridBagConstraints = new java.awt.GridBagConstraints();        gridBagConstraints.gridx = 5;        gridBagConstraints.gridy = 0;        dataPanel.add(jLabel4, gridBagConstraints);        pointcostPerModelCheckbox.setText("per model");        gridBagConstraints = new java.awt.GridBagConstraints();        gridBagConstraints.gridx = 6;        gridBagConstraints.gridy = 1;        dataPanel.add(pointcostPerModelCheckbox, gridBagConstraints);        delButton.setText("del");        delButton.setMargin(new java.awt.Insets(2, 2, 2, 2));        delButton.addActionListener(new java.awt.event.ActionListener() {            public void actionPerformed(java.awt.event.ActionEvent evt) {                delButtonActionPerformed(evt);            }        });        gridBagConstraints = new java.awt.GridBagConstraints();        gridBagConstraints.gridx = 7;        gridBagConstraints.gridy = 1;        dataPanel.add(delButton, gridBagConstraints);        moveButtonsPanel.setLayout(new java.awt.GridBagLayout());        moveUpButton.setMaximumSize(new java.awt.Dimension(35, 35));        moveUpButton.setMinimumSize(new java.awt.Dimension(35, 35));        moveUpButton.setPreferredSize(new java.awt.Dimension(35, 35));        moveUpButton.addActionListener(new java.awt.event.ActionListener() {            public void actionPerformed(java.awt.event.ActionEvent evt) {                moveUpButtonActionPerformed(evt);            }        });        moveButtonsPanel.add(moveUpButton, new java.awt.GridBagConstraints());        moveDownButton.setMaximumSize(new java.awt.Dimension(35, 35));        moveDownButton.setMinimumSize(new java.awt.Dimension(35, 35));        moveDownButton.setPreferredSize(new java.awt.Dimension(35, 35));        moveDownButton.addActionListener(new java.awt.event.ActionListener() {            public void actionPerformed(java.awt.event.ActionEvent evt) {                moveDownButtonActionPerformed(evt);            }        });        gridBagConstraints = new java.awt.GridBagConstraints();        gridBagConstraints.gridx = 0;        gridBagConstraints.gridy = 1;        moveButtonsPanel.add(moveDownButton, gridBagConstraints);        gridBagConstraints = new java.awt.GridBagConstraints();        gridBagConstraints.gridx = 0;        gridBagConstraints.gridy = 0;        gridBagConstraints.gridheight = 2;        dataPanel.add(moveButtonsPanel, gridBagConstraints);        jPanel1.add(dataPanel, java.awt.BorderLayout.WEST);        add(jPanel1, java.awt.BorderLayout.NORTH);    }//GEN-END:initComponents