/**
   * This method is called from within the constructor to initialize the form. WARNING: Do NOT
   * modify this code. The content of this method is always regenerated by the Form Editor.
   */
  private void initComponents() { // GEN-BEGIN:initComponents
    java.awt.GridBagConstraints gridBagConstraints;

    jSplitPane1 = new javax.swing.JSplitPane();
    treePanel = new javax.swing.JPanel();
    wgTreePanel = new javax.swing.JPanel();
    wargearTreeScrollPane = new javax.swing.JScrollPane();
    wargearTreeHolderPanel = new javax.swing.JPanel();
    wargearTree = new javax.swing.JTree();
    treeControlPanel = new javax.swing.JPanel();
    newGroupButton = new javax.swing.JButton();
    newItem = new javax.swing.JButton();
    newRootButton = new javax.swing.JButton();
    deletedTreePanel = new javax.swing.JPanel();
    jScrollPane1 = new javax.swing.JScrollPane();
    deletedTreeHolder = new javax.swing.JPanel();
    deletedWargearTree = new javax.swing.JTree();
    deletedHeaderPanel = new javax.swing.JPanel();
    jLabel1 = new javax.swing.JLabel();
    editorPanelContainer = new javax.swing.JPanel();
    scrollPane = new javax.swing.JScrollPane();
    editorPane = new javax.swing.JPanel();

    setTitle("Wargear Editor");
    addWindowListener(
        new java.awt.event.WindowAdapter() {
          public void windowClosing(java.awt.event.WindowEvent evt) {
            exitForm(evt);
          }
        });

    jSplitPane1.setDividerLocation(250);
    treePanel.setLayout(new java.awt.BorderLayout());

    wgTreePanel.setLayout(new java.awt.BorderLayout());

    wargearTreeScrollPane.setMaximumSize(new java.awt.Dimension(250, 300));
    wargearTreeHolderPanel.setLayout(new java.awt.BorderLayout());

    wargearTreeHolderPanel.add(wargearTree, java.awt.BorderLayout.CENTER);

    wargearTreeScrollPane.setViewportView(wargearTreeHolderPanel);

    wgTreePanel.add(wargearTreeScrollPane, java.awt.BorderLayout.CENTER);

    treeControlPanel.setLayout(new java.awt.GridBagLayout());

    newGroupButton.setMargin(new java.awt.Insets(0, 0, 0, 0));
    newGroupButton.addActionListener(
        new java.awt.event.ActionListener() {
          public void actionPerformed(java.awt.event.ActionEvent evt) {
            newGroupButtonActionPerformed(evt);
          }
        });

    treeControlPanel.add(newGroupButton, new java.awt.GridBagConstraints());

    newItem.setMargin(new java.awt.Insets(0, 0, 0, 0));
    newItem.addActionListener(
        new java.awt.event.ActionListener() {
          public void actionPerformed(java.awt.event.ActionEvent evt) {
            newItemActionPerformed(evt);
          }
        });

    treeControlPanel.add(newItem, new java.awt.GridBagConstraints());

    newRootButton.setText("new root group");
    newRootButton.setMargin(new java.awt.Insets(1, 1, 1, 1));
    newRootButton.addActionListener(
        new java.awt.event.ActionListener() {
          public void actionPerformed(java.awt.event.ActionEvent evt) {
            newRootButtonActionPerformed(evt);
          }
        });

    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 2;
    gridBagConstraints.gridy = 0;
    treeControlPanel.add(newRootButton, gridBagConstraints);

    wgTreePanel.add(treeControlPanel, java.awt.BorderLayout.SOUTH);

    treePanel.add(wgTreePanel, java.awt.BorderLayout.CENTER);

    deletedTreePanel.setLayout(new java.awt.BorderLayout());

    jScrollPane1.setMaximumSize(new java.awt.Dimension(250, 300));
    deletedTreeHolder.setLayout(new java.awt.BorderLayout());

    deletedTreeHolder.add(deletedWargearTree, java.awt.BorderLayout.CENTER);

    jLabel1.setText("Deleted Items");
    deletedHeaderPanel.add(jLabel1);

    deletedTreeHolder.add(deletedHeaderPanel, java.awt.BorderLayout.NORTH);

    jScrollPane1.setViewportView(deletedTreeHolder);

    deletedTreePanel.add(jScrollPane1, java.awt.BorderLayout.CENTER);

    treePanel.add(deletedTreePanel, java.awt.BorderLayout.SOUTH);

    jSplitPane1.setLeftComponent(treePanel);

    editorPanelContainer.setLayout(new java.awt.BorderLayout());

    scrollPane.setViewportView(editorPane);

    editorPanelContainer.add(scrollPane, java.awt.BorderLayout.CENTER);

    jSplitPane1.setRightComponent(editorPanelContainer);

    getContentPane().add(jSplitPane1, java.awt.BorderLayout.CENTER);

    pack();
  } // GEN-END:initComponents
Ejemplo n.º 2
0
  /**
   * This method is called from within the constructor to initialize the form. WARNING: Do NOT
   * modify this code. The content of this method is always regenerated by the Form Editor.
   */
  @SuppressWarnings("unchecked")
  // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
  private void initComponents() {
    java.awt.GridBagConstraints gridBagConstraints;

    jScrollPane1 = new javax.swing.JScrollPane();
    jTable1 = new javax.swing.JTable();
    jbBorrarListaErrores = new javax.swing.JButton();

    setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);
    setTitle("JBadMeth - Descripción Errores");
    getContentPane().setLayout(new java.awt.GridBagLayout());

    jTable1.setModel(new DefaultTableModel(cuerpo, title));
    jScrollPane1.setViewportView(jTable1);

    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 0;
    gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
    gridBagConstraints.ipadx = 352;
    gridBagConstraints.ipady = 248;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
    gridBagConstraints.weightx = 1.0;
    gridBagConstraints.weighty = 1.0;
    gridBagConstraints.insets = new java.awt.Insets(0, 0, 25, 25);
    getContentPane().add(jScrollPane1, gridBagConstraints);

    jbBorrarListaErrores.setText("Limpiar Lista de Errores");
    jbBorrarListaErrores.setToolTipText("");
    jbBorrarListaErrores.addActionListener(
        new java.awt.event.ActionListener() {
          public void actionPerformed(java.awt.event.ActionEvent evt) {
            jbBorrarListaErroresActionPerformed(evt);
          }
        });
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 1;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
    getContentPane().add(jbBorrarListaErrores, gridBagConstraints);

    pack();
  } // </editor-fold>//GEN-END:initComponents