/*
 * RunDialog_GOCompare.java
 *
 * Created on August 31, 2008, 2:28 PM
 */

package bicat.gui.window;

import bicat.GO.GOBean;
import bicat.gui.BicatGui;
import bicat.util.BicatUtil;
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.util.HashMap;
import java.util.Properties;
import java.util.Vector;
import javax.swing.DefaultListModel;
import javax.swing.JFileChooser;
import javax.swing.JOptionPane;
import javax.swing.ListModel;
import bicat.GO.List;
import bicat.GO.GeneMergeForGO;
import org.xml.sax.ext.LexicalHandler;
import bicat.biclustering.Dataset;
import java.util.Scanner;
import org.jfree.ui.RefineryUtilities;

/**
 *
 * @author  Hamed
 */
public class RunDialog_GOCompare extends javax.swing.JDialog {
BicatGui owner;
HashMap hMap=new HashMap();
HashMap hMapExt=new HashMap();
private File file;
final File propFile = new File(System.getProperty("user.home"),".bicat.lastfile");
final String lastFilePropertyName = "last-file";
static Scanner scanner;
    /** Creates new form RunDialog_GOCompare */
    public RunDialog_GOCompare(java.awt.Frame parent, boolean modal) {
        super(parent, modal);
        initComponents();
    }
/** Creates new form RunDialog_GOCompare and owner */
    public RunDialog_GOCompare(java.awt.Frame parent, boolean modal,BicatGui owner) {
        super(parent, modal); 
        this.owner=owner;
        
    }
   public void makeWindow() {
      
       this.setTitle("Gene Ontology Comparison");
       initComponents();
       // add the current lists to the avalialble lists
       Vector names = owner.getListNamesAll();
       names.remove(0);
       L_Available_List.setListData(names);
       
       
       this.pack();
       RefineryUtilities.centerFrameOnScreen(this);
       ///this.setLocationRelativeTo(owner);
       this.setVisible(true);
       
   } 
    /** 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() {

        buttonGroup1 = new javax.swing.ButtonGroup();
        jPanel1 = new javax.swing.JPanel();
        jLabel1 = new javax.swing.JLabel();
        jScrollPane1 = new javax.swing.JScrollPane();
        L_Available_List = new javax.swing.JList();
        B_All_To_Right = new javax.swing.JButton();
        B_All_To_Left = new javax.swing.JButton();
        B_One_To_Right = new javax.swing.JButton();
        B_One_To_Left = new javax.swing.JButton();
        jScrollPane2 = new javax.swing.JScrollPane();
        L_Compared_List = new javax.swing.JList();
        jLabel3 = new javax.swing.JLabel();
        T_AssignedName = new javax.swing.JTextField();
        B_SaveAssignedName = new javax.swing.JButton();
        jLabel2 = new javax.swing.JLabel();
        jPanel2 = new javax.swing.JPanel();
        jLabel4 = new javax.swing.JLabel();
        jLabel5 = new javax.swing.JLabel();
        jLabel6 = new javax.swing.JLabel();
        T_Name_external = new javax.swing.JTextField();
        T_FolderPath = new javax.swing.JTextField();
        T_Pop_Path = new javax.swing.JTextField();
        B_NewName = new javax.swing.JButton();
        jButton7 = new javax.swing.JButton();
        B_Add = new javax.swing.JButton();
        jScrollPane3 = new javax.swing.JScrollPane();
        L_externalList = new javax.swing.JList();
        B_Remove = new javax.swing.JButton();
        jLabel11 = new javax.swing.JLabel();
        Combo_Organism = new javax.swing.JComboBox();
        jButton8 = new javax.swing.JButton();
        jLabel12 = new javax.swing.JLabel();
        T_GO_FilePath = new javax.swing.JTextField();
        jButton1 = new javax.swing.JButton();
        jPanel3 = new javax.swing.JPanel();
        R_BP = new javax.swing.JRadioButton();
        R_MF = new javax.swing.JRadioButton();
        R_CC = new javax.swing.JRadioButton();
        jPanel4 = new javax.swing.JPanel();
        Ch_0 = new javax.swing.JCheckBox();
        Ch_1 = new javax.swing.JCheckBox();
        Ch_2 = new javax.swing.JCheckBox();
        Ch_3 = new javax.swing.JCheckBox();
        Ch_4 = new javax.swing.JCheckBox();
        Ch_5 = new javax.swing.JCheckBox();
        Ch_6 = new javax.swing.JCheckBox();
        Ch_7 = new javax.swing.JCheckBox();
        jLabel7 = new javax.swing.JLabel();
        T_Pvalues = new javax.swing.JTextField();
        jLabel8 = new javax.swing.JLabel();
        Ch_all = new javax.swing.JCheckBox();
        Ch_8 = new javax.swing.JCheckBox();
        jPanel5 = new javax.swing.JPanel();
        Ch_GeneNo = new javax.swing.JCheckBox();
        Ch_StudyFrac = new javax.swing.JCheckBox();
        Ch_GeneToPop = new javax.swing.JCheckBox();
        T_GeneNo = new javax.swing.JTextField();
        T_studyFrac = new javax.swing.JTextField();
        T_GeneToPop = new javax.swing.JTextField();
        jLabel9 = new javax.swing.JLabel();
        jLabel10 = new javax.swing.JLabel();
        jButton11 = new javax.swing.JButton();
        jButton13 = new javax.swing.JButton();

        setDefaultCloseOperation(javax.swing.WindowConstants.DISPOSE_ON_CLOSE);

        jPanel1.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)), "Select List of Biclusters", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Tahoma", 1, 12))); // NOI18N
        jPanel1.setName("jPanel1"); // NOI18N

        jLabel1.setText("Available lists : ");
        jLabel1.setName("jLabel1"); // NOI18N

        jScrollPane1.setName("jScrollPane1"); // NOI18N

        L_Available_List.setName("L_Available_List"); // NOI18N
        jScrollPane1.setViewportView(L_Available_List);

        B_All_To_Right.setText(">>");
        B_All_To_Right.setName("B_All_To_Right"); // NOI18N
        B_All_To_Right.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                B_All_To_RightActionPerformed(evt);
            }
        });

        B_All_To_Left.setText("<<");
        B_All_To_Left.setName("B_All_To_Left"); // NOI18N
        B_All_To_Left.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                B_All_To_LeftActionPerformed(evt);
            }
        });

        B_One_To_Right.setText(">");
        B_One_To_Right.setName("B_One_To_Right"); // NOI18N
        B_One_To_Right.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                B_One_To_RightActionPerformed(evt);
            }
        });

        B_One_To_Left.setText("<");
        B_One_To_Left.setName("B_One_To_Left"); // NOI18N
        B_One_To_Left.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                B_One_To_LeftActionPerformed(evt);
            }
        });

        jScrollPane2.setName("jScrollPane2"); // NOI18N

        L_Compared_List.setName("L_Compared_List"); // NOI18N
        L_Compared_List.addListSelectionListener(new javax.swing.event.ListSelectionListener() {
            public void valueChanged(javax.swing.event.ListSelectionEvent evt) {
                L_Compared_ListValueChanged(evt);
            }
        });
        jScrollPane2.setViewportView(L_Compared_List);

        jLabel3.setText("Assigned Name :");
        jLabel3.setName("jLabel3"); // NOI18N

        T_AssignedName.setName("T_AssignedName"); // NOI18N

        B_SaveAssignedName.setText("Save");
        B_SaveAssignedName.setName("B_SaveAssignedName"); // NOI18N
        B_SaveAssignedName.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                B_SaveAssignedNameActionPerformed(evt);
            }
        });

        jLabel2.setText("Compared lists :");
        jLabel2.setName("jLabel2"); // NOI18N

        javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
        jPanel1.setLayout(jPanel1Layout);
        jPanel1Layout.setHorizontalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel1)
                    .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 232, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addComponent(B_One_To_Right, 0, 0, Short.MAX_VALUE)
                    .addComponent(B_All_To_Right, 0, 0, Short.MAX_VALUE)
                    .addComponent(B_All_To_Left, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(B_One_To_Left, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addComponent(jScrollPane2, javax.swing.GroupLayout.PREFERRED_SIZE, 222, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(B_SaveAssignedName)
                            .addComponent(T_AssignedName, javax.swing.GroupLayout.PREFERRED_SIZE, 92, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel3)))
                    .addComponent(jLabel2, javax.swing.GroupLayout.PREFERRED_SIZE, 120, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        jPanel1Layout.linkSize(javax.swing.SwingConstants.HORIZONTAL, new java.awt.Component[] {B_SaveAssignedName, T_AssignedName, jLabel3});

        jPanel1Layout.setVerticalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel1)
                            .addComponent(jLabel2))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(jScrollPane1, 0, 0, Short.MAX_VALUE)
                            .addComponent(jScrollPane2, javax.swing.GroupLayout.DEFAULT_SIZE, 119, Short.MAX_VALUE)
                            .addGroup(jPanel1Layout.createSequentialGroup()
                                .addComponent(B_All_To_Left)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(B_All_To_Right, javax.swing.GroupLayout.PREFERRED_SIZE, 23, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(B_One_To_Right)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(B_One_To_Left))))
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addGap(21, 21, 21)
                        .addComponent(jLabel3)
                        .addGap(18, 18, 18)
                        .addComponent(T_AssignedName, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(18, 18, 18)
                        .addComponent(B_SaveAssignedName)))
                .addContainerGap())
        );

        jPanel1Layout.linkSize(javax.swing.SwingConstants.VERTICAL, new java.awt.Component[] {B_SaveAssignedName, T_AssignedName, jLabel3});

        jPanel1Layout.linkSize(javax.swing.SwingConstants.VERTICAL, new java.awt.Component[] {B_All_To_Left, B_All_To_Right, B_One_To_Left, B_One_To_Right});

        jPanel2.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)), "Compare with extrenal lists of Biclusters", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Tahoma", 1, 12))); // NOI18N
        jPanel2.setName("jPanel2"); // NOI18N

        jLabel4.setText("Name : ");
        jLabel4.setName("jLabel4"); // NOI18N

        jLabel5.setText("Clusters Files Path : ");
        jLabel5.setName("jLabel5"); // NOI18N

        jLabel6.setText("Population File Path : ");
        jLabel6.setName("jLabel6"); // NOI18N

        T_Name_external.setName("T_Name_external"); // NOI18N
        T_Name_external.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                T_Name_externalActionPerformed(evt);
            }
        });

        T_FolderPath.setText(" ");
        T_FolderPath.setName("T_FolderPath"); // NOI18N

        T_Pop_Path.setText(" ");
        T_Pop_Path.setName("T_Pop_Path"); // NOI18N

        B_NewName.setText("New");
        B_NewName.setName("B_NewName"); // NOI18N
        B_NewName.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                B_NewNameActionPerformed(evt);
            }
        });

        jButton7.setText("...");
        jButton7.setName("B_FolderPath"); // NOI18N
        jButton7.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton7ActionPerformed(evt);
            }
        });

        B_Add.setText("Add");
        B_Add.setName("B_Add"); // NOI18N
        B_Add.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                B_AddActionPerformed(evt);
            }
        });

        jScrollPane3.setName("jScrollPane3"); // NOI18N

        L_externalList.setName("L_externalList"); // NOI18N
        L_externalList.addListSelectionListener(new javax.swing.event.ListSelectionListener() {
            public void valueChanged(javax.swing.event.ListSelectionEvent evt) {
                L_externalListValueChanged(evt);
            }
        });
        jScrollPane3.setViewportView(L_externalList);

        B_Remove.setText("Remove");
        B_Remove.setName("B_Remove"); // NOI18N
        B_Remove.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                B_RemoveActionPerformed(evt);
            }
        });

        jLabel11.setText("Select Organsim : ");
        jLabel11.setName("jLabel11"); // NOI18N

        Combo_Organism.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Saccharomyces cerevisiae" }));
        Combo_Organism.setName("Combo_Organism"); // NOI18N

        jButton8.setText("...");
        jButton8.setName("jButton8"); // NOI18N
        jButton8.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton8ActionPerformed(evt);
            }
        });

        jLabel12.setText("GO Files  Path :");
        jLabel12.setName("jLabel12"); // NOI18N

        T_GO_FilePath.setText(" ");
        T_GO_FilePath.setName("T_GO_FilePath"); // NOI18N

        jButton1.setText("jButton1");
        jButton1.setName("jButton1"); // NOI18N
        jButton1.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton1ActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
        jPanel2.setLayout(jPanel2Layout);
        jPanel2Layout.setHorizontalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel2Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel11, javax.swing.GroupLayout.DEFAULT_SIZE, 109, Short.MAX_VALUE)
                    .addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 95, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel5)
                    .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                        .addComponent(jLabel12, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                        .addComponent(jLabel6, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel2Layout.createSequentialGroup()
                        .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addGroup(jPanel2Layout.createSequentialGroup()
                                .addComponent(T_FolderPath, javax.swing.GroupLayout.DEFAULT_SIZE, 214, Short.MAX_VALUE)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(jButton7, javax.swing.GroupLayout.PREFERRED_SIZE, 25, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addGroup(jPanel2Layout.createSequentialGroup()
                                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(T_GO_FilePath, javax.swing.GroupLayout.DEFAULT_SIZE, 214, Short.MAX_VALUE)
                                    .addComponent(T_Pop_Path, javax.swing.GroupLayout.Alignment.TRAILING, javax.swing.GroupLayout.DEFAULT_SIZE, 214, Short.MAX_VALUE))
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                    .addComponent(jButton1, 0, 0, Short.MAX_VALUE)
                                    .addComponent(jButton8, javax.swing.GroupLayout.PREFERRED_SIZE, 25, Short.MAX_VALUE))))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED))
                    .addComponent(Combo_Organism, javax.swing.GroupLayout.Alignment.TRAILING, 0, 245, Short.MAX_VALUE)
                    .addComponent(T_Name_external, javax.swing.GroupLayout.DEFAULT_SIZE, 245, Short.MAX_VALUE))
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel2Layout.createSequentialGroup()
                        .addGap(17, 17, 17)
                        .addComponent(B_NewName)
                        .addGap(10, 10, 10)
                        .addComponent(B_Add)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(B_Remove))
                    .addGroup(jPanel2Layout.createSequentialGroup()
                        .addGap(18, 18, 18)
                        .addComponent(jScrollPane3, javax.swing.GroupLayout.DEFAULT_SIZE, 230, Short.MAX_VALUE)))
                .addContainerGap())
        );

        jPanel2Layout.linkSize(javax.swing.SwingConstants.HORIZONTAL, new java.awt.Component[] {jLabel5, jLabel6});

        jPanel2Layout.linkSize(javax.swing.SwingConstants.HORIZONTAL, new java.awt.Component[] {B_Add, B_NewName, B_Remove});

        jPanel2Layout.setVerticalGroup(
            jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel2Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(jLabel11)
                        .addComponent(B_NewName)
                        .addComponent(Combo_Organism, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(B_Remove)
                        .addComponent(B_Add)))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel2Layout.createSequentialGroup()
                        .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(T_Name_external, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel4, javax.swing.GroupLayout.PREFERRED_SIZE, 14, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(jPanel2Layout.createSequentialGroup()
                                .addGap(2, 2, 2)
                                .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                    .addComponent(jLabel5, javax.swing.GroupLayout.PREFERRED_SIZE, 18, javax.swing.GroupLayout.PREFERRED_SIZE)
                                    .addComponent(T_FolderPath, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                            .addComponent(jButton7))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                        .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel6)
                            .addComponent(jButton8)
                            .addComponent(T_Pop_Path, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanel2Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jButton1)
                            .addComponent(T_GO_FilePath, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel12)))
                    .addComponent(jScrollPane3, javax.swing.GroupLayout.DEFAULT_SIZE, 112, Short.MAX_VALUE))
                .addContainerGap())
        );

        jPanel2Layout.linkSize(javax.swing.SwingConstants.VERTICAL, new java.awt.Component[] {B_Add, B_NewName, B_Remove});

        jPanel2Layout.linkSize(javax.swing.SwingConstants.VERTICAL, new java.awt.Component[] {T_FolderPath, T_Pop_Path});

        jPanel3.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)), "Select GO Category", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Tahoma", 1, 12))); // NOI18N
        jPanel3.setName("jPanel3"); // NOI18N

        buttonGroup1.add(R_BP);
        R_BP.setSelected(true);
        R_BP.setText("Biological Process");
        R_BP.setName("R_BP"); // NOI18N
        R_BP.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                R_BPActionPerformed(evt);
            }
        });

        buttonGroup1.add(R_MF);
        R_MF.setText("Molecular Function ");
        R_MF.setName("R_MF"); // NOI18N

        buttonGroup1.add(R_CC);
        R_CC.setText("Cellular Components ");
        R_CC.setName("R_CC"); // NOI18N

        javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);
        jPanel3.setLayout(jPanel3Layout);
        jPanel3Layout.setHorizontalGroup(
            jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel3Layout.createSequentialGroup()
                .addGap(43, 43, 43)
                .addComponent(R_BP, javax.swing.GroupLayout.PREFERRED_SIZE, 169, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(33, 33, 33)
                .addComponent(R_MF, javax.swing.GroupLayout.PREFERRED_SIZE, 166, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(18, 18, 18)
                .addComponent(R_CC, javax.swing.GroupLayout.PREFERRED_SIZE, 158, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addContainerGap(39, Short.MAX_VALUE))
        );
        jPanel3Layout.setVerticalGroup(
            jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel3Layout.createSequentialGroup()
                .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(R_BP)
                    .addComponent(R_CC)
                    .addComponent(R_MF))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        jPanel4.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)), "Select P-values ", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Tahoma", 1, 12))); // NOI18N
        jPanel4.setName("jPanel4"); // NOI18N

        Ch_0.setText("0.00001");
        Ch_0.setName("Ch_0"); // NOI18N
        Ch_0.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                Ch_0ActionPerformed(evt);
            }
        });

        Ch_1.setText("0.00005");
        Ch_1.setName("Ch_1"); // NOI18N

        Ch_2.setText("0.0001");
        Ch_2.setName("Ch_2"); // NOI18N

        Ch_3.setText("0.0005");
        Ch_3.setName("Ch_3"); // NOI18N

        Ch_4.setText("0.001");
        Ch_4.setName("Ch_4"); // NOI18N

        Ch_5.setText("0.005");
        Ch_5.setName("Ch_5"); // NOI18N

        Ch_6.setText("0.01");
        Ch_6.setName("Ch_6"); // NOI18N

        Ch_7.setText("0.05");
        Ch_7.setName("Ch_7"); // NOI18N

        jLabel7.setText("Add More P-values : ");
        jLabel7.setName("jLabel7"); // NOI18N

        T_Pvalues.setName("T_Pvalues"); // NOI18N

        jLabel8.setText("add multiple Pvalues separated by comma");
        jLabel8.setName("jLabel8"); // NOI18N

        Ch_all.setText("Default (All)");
        Ch_all.setName("Ch_all"); // NOI18N
        Ch_all.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                Ch_allActionPerformed(evt);
            }
        });

        Ch_8.setText("0.00005");

        javax.swing.GroupLayout jPanel4Layout = new javax.swing.GroupLayout(jPanel4);
        jPanel4.setLayout(jPanel4Layout);
        jPanel4Layout.setHorizontalGroup(
            jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel4Layout.createSequentialGroup()
                .addGap(24, 24, 24)
                .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(Ch_0)
                    .addComponent(Ch_4)
                    .addComponent(jLabel7, javax.swing.GroupLayout.PREFERRED_SIZE, 138, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel4Layout.createSequentialGroup()
                        .addGap(20, 20, 20)
                        .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(Ch_1)
                            .addComponent(Ch_5))
                        .addGap(61, 61, 61)
                        .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(Ch_2, javax.swing.GroupLayout.PREFERRED_SIZE, 65, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(Ch_6))
                        .addGap(62, 62, 62)
                        .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addGroup(jPanel4Layout.createSequentialGroup()
                                .addComponent(Ch_3, javax.swing.GroupLayout.PREFERRED_SIZE, 65, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addGap(18, 18, 18)
                                .addComponent(Ch_all, javax.swing.GroupLayout.PREFERRED_SIZE, 96, javax.swing.GroupLayout.PREFERRED_SIZE))
                            .addComponent(Ch_7)))
                    .addGroup(jPanel4Layout.createSequentialGroup()
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(T_Pvalues, javax.swing.GroupLayout.PREFERRED_SIZE, 207, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jLabel8, javax.swing.GroupLayout.PREFERRED_SIZE, 253, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap())
        );

        jPanel4Layout.linkSize(javax.swing.SwingConstants.HORIZONTAL, new java.awt.Component[] {Ch_4, Ch_5, Ch_6, Ch_7});

        jPanel4Layout.setVerticalGroup(
            jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel4Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE, false)
                    .addComponent(Ch_0)
                    .addComponent(Ch_1)
                    .addComponent(Ch_2)
                    .addComponent(Ch_3)
                    .addComponent(Ch_all))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE, false)
                    .addComponent(Ch_4)
                    .addComponent(Ch_5)
                    .addComponent(Ch_6)
                    .addComponent(Ch_7))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel7)
                    .addComponent(jLabel8)
                    .addComponent(T_Pvalues, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        jPanel4Layout.linkSize(javax.swing.SwingConstants.VERTICAL, new java.awt.Component[] {Ch_0, Ch_1, Ch_2, Ch_3, Ch_4, Ch_5, Ch_6, Ch_7});

        jPanel5.setBorder(javax.swing.BorderFactory.createTitledBorder(javax.swing.BorderFactory.createLineBorder(new java.awt.Color(0, 0, 0)), "Filter GO Attributes", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Tahoma", 1, 12))); // NOI18N
        jPanel5.setName("jPanel5"); // NOI18N

        Ch_GeneNo.setText(" Min Gene No in the GO Attribute : ");
        Ch_GeneNo.setName("Ch_GeneNo"); // NOI18N

        Ch_StudyFrac.setText("Min Study Fraction percentage : ");
        Ch_StudyFrac.setName("Ch_StudyFrac"); // NOI18N
        Ch_StudyFrac.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                Ch_StudyFracActionPerformed(evt);
            }
        });

        Ch_GeneToPop.setText("Min Percentage of Genes in the GO term to the whole No of Genes in the Population : ");
        Ch_GeneToPop.setName("Ch_GeneToPop"); // NOI18N

        T_GeneNo.setName("T_GeneNo"); // NOI18N
        T_GeneNo.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusLost(java.awt.event.FocusEvent evt) {
                T_GeneNoFocusLost(evt);
            }
        });
        T_GeneNo.addInputMethodListener(new java.awt.event.InputMethodListener() {
            public void caretPositionChanged(java.awt.event.InputMethodEvent evt) {
            }
            public void inputMethodTextChanged(java.awt.event.InputMethodEvent evt) {
                T_GeneNoInputMethodTextChanged(evt);
            }
        });

        T_studyFrac.setName("T_StudyFraction"); // NOI18N
        T_studyFrac.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusLost(java.awt.event.FocusEvent evt) {
                T_studyFracFocusLost(evt);
            }
        });
        T_studyFrac.addInputMethodListener(new java.awt.event.InputMethodListener() {
            public void caretPositionChanged(java.awt.event.InputMethodEvent evt) {
            }
            public void inputMethodTextChanged(java.awt.event.InputMethodEvent evt) {
                T_studyFracInputMethodTextChanged(evt);
            }
        });

        T_GeneToPop.setName("T_Gene_ToPop"); // NOI18N
        T_GeneToPop.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusLost(java.awt.event.FocusEvent evt) {
                T_GeneToPopFocusLost(evt);
            }
        });
        T_GeneToPop.addInputMethodListener(new java.awt.event.InputMethodListener() {
            public void caretPositionChanged(java.awt.event.InputMethodEvent evt) {
            }
            public void inputMethodTextChanged(java.awt.event.InputMethodEvent evt) {
                T_GeneToPopInputMethodTextChanged(evt);
            }
        });

        jLabel9.setText("%");
        jLabel9.setName("jLabel9"); // NOI18N

        jLabel10.setText("%");
        jLabel10.setName("jLabel10"); // NOI18N

        javax.swing.GroupLayout jPanel5Layout = new javax.swing.GroupLayout(jPanel5);
        jPanel5.setLayout(jPanel5Layout);
        jPanel5Layout.setHorizontalGroup(
            jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel5Layout.createSequentialGroup()
                .addGap(28, 28, 28)
                .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addGroup(jPanel5Layout.createSequentialGroup()
                        .addComponent(Ch_GeneToPop)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(T_GeneToPop))
                    .addGroup(jPanel5Layout.createSequentialGroup()
                        .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                            .addComponent(Ch_StudyFrac, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                            .addComponent(Ch_GeneNo, javax.swing.GroupLayout.DEFAULT_SIZE, 219, Short.MAX_VALUE))
                        .addGap(12, 12, 12)
                        .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addComponent(T_studyFrac)
                            .addComponent(T_GeneNo, javax.swing.GroupLayout.DEFAULT_SIZE, 308, Short.MAX_VALUE))))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(jLabel9)
                    .addComponent(jLabel10))
                .addGap(38, 38, 38))
        );
        jPanel5Layout.setVerticalGroup(
            jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel5Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(Ch_GeneNo)
                    .addComponent(T_GeneNo, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(Ch_StudyFrac)
                    .addComponent(T_studyFrac, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel9))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addComponent(Ch_GeneToPop)
                    .addGroup(jPanel5Layout.createSequentialGroup()
                        .addGap(3, 3, 3)
                        .addGroup(jPanel5Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(T_GeneToPop, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel10))))
                .addContainerGap())
        );

        jButton11.setText("Compare");
        jButton11.setName("jButton11"); // NOI18N
        jButton11.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton11ActionPerformed(evt);
            }
        });

        jButton13.setText("Cancel");
        jButton13.setName("jButton13"); // NOI18N
        jButton13.addActionListener(new java.awt.event.ActionListener() {
            public void actionPerformed(java.awt.event.ActionEvent evt) {
                jButton13ActionPerformed(evt);
            }
        });

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
        getContentPane().setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addGroup(layout.createSequentialGroup()
                        .addGap(233, 233, 233)
                        .addComponent(jButton11)
                        .addGap(46, 46, 46)
                        .addComponent(jButton13))
                    .addComponent(jPanel1, 0, 636, Short.MAX_VALUE)
                    .addComponent(jPanel4, 0, 636, Short.MAX_VALUE)
                    .addComponent(jPanel3, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jPanel2, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)
                    .addComponent(jPanel5, javax.swing.GroupLayout.DEFAULT_SIZE, 636, Short.MAX_VALUE))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );

        layout.linkSize(javax.swing.SwingConstants.HORIZONTAL, new java.awt.Component[] {jButton11, jButton13});

        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(layout.createSequentialGroup()
                .addComponent(jPanel1, javax.swing.GroupLayout.PREFERRED_SIZE, 175, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(1, 1, 1)
                .addComponent(jPanel2, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addGap(1, 1, 1)
                .addComponent(jPanel3, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jPanel4, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addComponent(jPanel5, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jButton11)
                    .addComponent(jButton13))
                .addContainerGap())
        );

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

private void B_All_To_RightActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_B_All_To_RightActionPerformed
 // TODO add your handling code here:
 DefaultListModel listModel = new DefaultListModel();
   
 for(int i=0 ; i<L_Compared_List.getModel().getSize() ; i++ ){
            listModel.addElement(L_Compared_List.getModel().getElementAt(i));
        } 
 for(int i=0 ; i<L_Available_List.getModel().getSize() ; i++ ){
            listModel.addElement(L_Available_List.getModel().getElementAt(i));
        }
  
L_Compared_List.setModel(listModel);
L_Available_List.setModel(new DefaultListModel());
    
   
}//GEN-LAST:event_B_All_To_RightActionPerformed

private void B_One_To_LeftActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_B_One_To_LeftActionPerformed
// TODO add your handling code here:
     if(L_Compared_List.getSelectedIndex() != -1)
 {
      int index =L_Available_List.getModel().getSize();
      String item=L_Compared_List.getSelectedValue().toString();
      
      DefaultListModel model=new DefaultListModel();
      for(int i=0;i<L_Available_List.getModel().getSize();i++)
      {
          model.addElement(L_Available_List.getModel().getElementAt(i));
      }
      model.addElement(item);
      L_Available_List.setModel(model);
      L_Available_List.setSelectedIndex(index);
      L_Available_List.ensureIndexIsVisible(index);
      
      DefaultListModel model2= new DefaultListModel();
      for(int i=0;i<L_Compared_List.getModel().getSize();i++)
      {
          model2.addElement(L_Compared_List.getModel().getElementAt(i));
      }
      model2.removeElementAt(L_Compared_List.getSelectedIndex());
      L_Compared_List.setModel(model2);
     
 }else
 {
     JOptionPane.showMessageDialog(null,"Please select an item from the list");
 }
    
}//GEN-LAST:event_B_One_To_LeftActionPerformed

private void B_SaveAssignedNameActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_B_SaveAssignedNameActionPerformed
// TODO add your handling code here:
    if(L_Compared_List.getSelectedIndex()!=-1)
    {
        if(T_AssignedName.getText() !=null &&! T_AssignedName.getText().equalsIgnoreCase("") )
        {
        String selectedItem=L_Compared_List.getSelectedValue().toString();
        if (hMap.containsKey(selectedItem))
                hMap.remove(selectedItem);
        hMap.put(selectedItem, T_AssignedName.getText());
        }else
          JOptionPane.showMessageDialog(null,"Please Enter name for the selected list");
        
    }else
         JOptionPane.showMessageDialog(null,"Please Select an item from the list");
    
}//GEN-LAST:event_B_SaveAssignedNameActionPerformed

private void T_Name_externalActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_T_Name_externalActionPerformed
// TODO add your handling code here:
}//GEN-LAST:event_T_Name_externalActionPerformed

private void B_AddActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_B_AddActionPerformed
// TODO add your handling code here:
   if (T_Name_external.getText()==null || T_Name_external.getText().equalsIgnoreCase(""))
        JOptionPane.showMessageDialog(null,"Please Type Name for the External Algorithm");
   else if((T_FolderPath.getText()==null || T_FolderPath.getText().equalsIgnoreCase("") ||
           T_FolderPath.getText().equalsIgnoreCase(" ")|| T_Pop_Path.getText()==null ||
           T_Pop_Path.getText().equalsIgnoreCase("")|| T_Pop_Path.getText().equalsIgnoreCase(" "))
           && (T_GO_FilePath.getText()==null || T_GO_FilePath.getText().equalsIgnoreCase("") ||
           T_GO_FilePath.getText().equalsIgnoreCase(" ")))
       
           JOptionPane.showMessageDialog(null,"Please fill the External Algorithm Data (Cluster Folder Path and population) OR \n (GO folder path)");
   
   else {
     String name=T_Name_external.getText().toString();
     String folderPath=T_FolderPath.getText();
     if(folderPath==null || folderPath.equalsIgnoreCase("")) folderPath=" ";
     String pop_Path=T_Pop_Path.getText();
     if(pop_Path==null || pop_Path.equalsIgnoreCase("")) pop_Path=" ";
     String goFolderPath=T_GO_FilePath.getText();
     if(goFolderPath==null || goFolderPath.equalsIgnoreCase("")) goFolderPath=" ";
     String organism=Combo_Organism.getSelectedItem().toString();
     
        if(hMapExt.containsKey(name))
        {
            hMapExt.remove(name);
            hMapExt.put(name,organism+";"+folderPath+";"+pop_Path+";"+goFolderPath);
        }else
        {
         // add it in the list
         DefaultListModel model=new DefaultListModel();
          for(int i=0;i<L_externalList.getModel().getSize();i++)
          {
              model.addElement(L_externalList.getModel().getElementAt(i));
          }
          model.addElement(name);
          L_externalList.setModel(model);
          // add it in the hashmap
          //hMapExt.put(name,organism+";"+folderPath+";"+pop_Path);
          hMapExt.put(name,organism+";"+folderPath+";"+pop_Path+";"+goFolderPath);
          
          T_Name_external.setText("");
          T_FolderPath.setText(" ");
          T_Pop_Path.setText(" ");
          T_GO_FilePath.setText(" ");
         
        }
    }
    
    
}//GEN-LAST:event_B_AddActionPerformed

private void R_BPActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_R_BPActionPerformed
// TODO add your handling code here:
}//GEN-LAST:event_R_BPActionPerformed

private void Ch_0ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_Ch_0ActionPerformed
// TODO add your handling code here:
}//GEN-LAST:event_Ch_0ActionPerformed

private void Ch_StudyFracActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_Ch_StudyFracActionPerformed
 // TODO add your handling code here:
}//GEN-LAST:event_Ch_StudyFracActionPerformed

private void B_All_To_LeftActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_B_All_To_LeftActionPerformed
// TODO add your handling code here:
 DefaultListModel listModel = new DefaultListModel();
   
 for(int i=0 ; i<L_Available_List.getModel().getSize() ; i++ ){
            listModel.addElement(L_Available_List.getModel().getElementAt(i));
        }
 for(int i=0 ; i<L_Compared_List.getModel().getSize() ; i++ ){
            listModel.addElement(L_Compared_List.getModel().getElementAt(i));
        }
 
L_Available_List.setModel(listModel);
L_Compared_List.setModel(new DefaultListModel());

}//GEN-LAST:event_B_All_To_LeftActionPerformed

private void B_One_To_RightActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_B_One_To_RightActionPerformed
// TODO add your handling code here:
    if(L_Available_List.getSelectedIndex() != -1)
 {
      int index =L_Compared_List.getModel().getSize();
      String item=L_Available_List.getSelectedValue().toString();
      
      DefaultListModel model=new DefaultListModel();
      for(int i=0;i<L_Compared_List.getModel().getSize();i++)
      {
          model.addElement(L_Compared_List.getModel().getElementAt(i));
      }
      model.addElement(item);
      L_Compared_List.setModel(model);
      L_Compared_List.setSelectedIndex(index);
      L_Compared_List.ensureIndexIsVisible(index);
      
      DefaultListModel model2= new DefaultListModel();
      for(int i=0;i<L_Available_List.getModel().getSize();i++)
      {
          model2.addElement(L_Available_List.getModel().getElementAt(i));
      }
      model2.removeElementAt(L_Available_List.getSelectedIndex());
      L_Available_List.setModel(model2);
     
 }else
 {
     JOptionPane.showMessageDialog(null,"Please select an item from the list");
 }
}//GEN-LAST:event_B_One_To_RightActionPerformed

private void L_Compared_ListValueChanged(javax.swing.event.ListSelectionEvent evt) {//GEN-FIRST:event_L_Compared_ListValueChanged
// TODO add your handling code here:
if( L_Compared_List.getSelectedIndex()!=-1){
    String selectdItem=L_Compared_List.getSelectedValue().toString();
    String savedName=(String)hMap.get(selectdItem);
    if(savedName != null )
        T_AssignedName.setText(savedName);
    else
        T_AssignedName.setText("");
}
}//GEN-LAST:event_L_Compared_ListValueChanged

private void jButton7ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton7ActionPerformed
// TODO add your handling code here:
        JFileChooser jfc = new JFileChooser(BicatGui.currentDirectoryPath);
        jfc.setMultiSelectionEnabled(true);
        jfc.setDragEnabled(true);
        jfc.setDialogTitle("Select main data file:");
        try {
                Properties prop = new Properties();
                prop.load(new FileInputStream(propFile));
                if (prop.containsKey(lastFilePropertyName)) {
                        File selFile = new File(prop.getProperty(lastFilePropertyName));
                        jfc.setSelectedFile(selFile);
                }
        } catch (IOException ex) {
                // could not fetch last file from properties file
                // ignore exception
                ex.printStackTrace();
        }

        if (jfc.showOpenDialog(owner) == JFileChooser.APPROVE_OPTION) {
                file = jfc.getCurrentDirectory();
                Properties prop = new Properties();
                prop.setProperty(lastFilePropertyName, file.getAbsolutePath());
                try {
                        prop.store(new FileOutputStream(propFile),lastFilePropertyName);
                } catch (IOException ex) {
                        // ignore
                        ex.printStackTrace();
                }
                T_FolderPath.setText(file.getPath());
        } else
                return; 
}//GEN-LAST:event_jButton7ActionPerformed

private void jButton8ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton8ActionPerformed
// TODO add your handling code here:
    JFileChooser jfc = new JFileChooser(BicatGui.currentDirectoryPath);
        jfc.setMultiSelectionEnabled(true);
        jfc.setDragEnabled(true);
        jfc.setDialogTitle("Select main data file:");
        try {
                Properties prop = new Properties();
                prop.load(new FileInputStream(propFile));
                if (prop.containsKey(lastFilePropertyName)) {
                        File selFile = new File(prop.getProperty(lastFilePropertyName));
                        jfc.setSelectedFile(selFile);
                }
        } catch (IOException ex) {
                // could not fetch last file from properties file
                // ignore exception
                ex.printStackTrace();
        }

        if (jfc.showOpenDialog(owner) == JFileChooser.APPROVE_OPTION) {
                file = jfc.getSelectedFile();
                Properties prop = new Properties();
                prop.setProperty(lastFilePropertyName, file.getAbsolutePath());
                try {
                        prop.store(new FileOutputStream(propFile),lastFilePropertyName);
                } catch (IOException ex) {
                        // ignore
                        ex.printStackTrace();
                }
                T_Pop_Path.setText(file.getPath());
        } else
                return; 
}//GEN-LAST:event_jButton8ActionPerformed

private void B_NewNameActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_B_NewNameActionPerformed
// TODO add your handling code here:
    T_Name_external.setText("");
    T_FolderPath.setText(" ");
    T_Pop_Path.setText(" ");
    T_GO_FilePath.setText(" ");
}//GEN-LAST:event_B_NewNameActionPerformed

private void B_RemoveActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_B_RemoveActionPerformed
// TODO add your handling code here:
    if(L_externalList.getSelectedIndex()!=-1)
    {
      
      //  remove from the hashmap
      if(hMapExt.containsKey(L_externalList.getSelectedValue().toString()))
          hMapExt.remove(L_externalList.getSelectedValue().toString());  
      //  remove from the list
      DefaultListModel model= new DefaultListModel();
      for(int i=0;i<L_externalList.getModel().getSize();i++)
      {
          model.addElement(L_externalList.getModel().getElementAt(i));
      }
      model.removeElementAt(L_externalList.getSelectedIndex());
      L_externalList.setModel(model);
      
        T_Name_external.setText("");
        T_FolderPath.setText(" ");
        T_Pop_Path.setText(" ");
        T_GO_FilePath.setText(" ");
      
      
    }else
          JOptionPane.showMessageDialog(null,"Please select an item from the list");  
    
       
    
}//GEN-LAST:event_B_RemoveActionPerformed

private void jButton13ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton13ActionPerformed
// TODO add your handling code here:
    this.setVisible(false);
    this.dispose();
}//GEN-LAST:event_jButton13ActionPerformed

private void L_externalListValueChanged(javax.swing.event.ListSelectionEvent evt) {//GEN-FIRST:event_L_externalListValueChanged
// TODO add your handling code here:
   
if( L_externalList.getSelectedIndex()!=-1){
    String selectdName=L_externalList.getSelectedValue().toString();
    String savedInfo=(String)hMapExt.get(selectdName);
    if(savedInfo != null )
    {
        String savedInforArr []=savedInfo.split(";");
        T_Name_external.setText(selectdName);
        T_FolderPath.setText(savedInforArr[1]);
        T_Pop_Path.setText(savedInforArr[2]);
        T_GO_FilePath.setText(savedInforArr[3]);
        
    }else
    {
        T_Name_external.setText("");
        T_FolderPath.setText("");
        T_Pop_Path.setText("");
        T_GO_FilePath.setText("");
    }
    
}
}//GEN-LAST:event_L_externalListValueChanged

private void Ch_allActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_Ch_allActionPerformed
// TODO add your handling code here:
    if( Ch_all.isSelected())
    {
        Ch_0.setSelected(true);
        Ch_1.setSelected(true);
        Ch_2.setSelected(true);
        Ch_3.setSelected(true);
        Ch_4.setSelected(true);
        Ch_5.setSelected(true);
        Ch_6.setSelected(true);
        Ch_7.setSelected(true);      
    }else{
        Ch_0.setSelected(false);
        Ch_1.setSelected(false);
        Ch_2.setSelected(false);
        Ch_3.setSelected(false);
        Ch_4.setSelected(false);
        Ch_5.setSelected(false);
        Ch_6.setSelected(false);
        Ch_7.setSelected(false);        
    }
        
    
}//GEN-LAST:event_Ch_allActionPerformed

private void jButton11ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton11ActionPerformed
// TODO add your handling code here:
GOBean goBean=new GOBean();

if(Ch_GeneNo.isSelected() &&  ! isInteger(T_GeneNo.getText().toString()))
        JOptionPane.showMessageDialog(null,"Please Type numeric value for the Min Gene No");
else if(Ch_StudyFrac.isSelected() &&  ! isDouble(T_studyFrac.getText().toString()))
        JOptionPane.showMessageDialog(null,"Please Type numeric value for the Min Study fraction");  
else if(Ch_GeneToPop.isSelected() && ! isDouble(T_GeneToPop.getText().toString()))
        JOptionPane.showMessageDialog(null,"Please Type numeric value for the Min percentage of Gene to population "); 

else if(L_Compared_List.getModel().getSize() > 0 || L_externalList.getModel().getSize()>0)
{
    
   //===========compared list and compared list names
   Vector comparedLists=new Vector();
   //Vector comparedListNameVect=new Vector();
   String fullListName="";
   List comparedList=null;
   for(int i=0;i<L_Compared_List.getModel().getSize();i++)
      {
       comparedList=new List();
       fullListName=L_Compared_List.getModel().getElementAt(i).toString();
       if(hMap.containsKey(fullListName))
       {
           comparedList.setName((String)hMap.get(fullListName));
       }else// if it is not given a name , name it by algo name
       {
           String bicName=BicatUtil.getBicNameFromLabel(fullListName);
           comparedList.setName(bicName);
       }
       int datasetIdx=BicatUtil.getListAndIdx(fullListName)[2];
       comparedList.setBcList(owner.getBicListFromLabel(fullListName));
       comparedList.setDatasetIdx(datasetIdx);
       String pop_File=owner.currentDirectoryPath+"//"+owner.GO_DIRECTORY_DATASET+datasetIdx+"//pop.txt";
       comparedList.setOrganism(((Dataset)owner.datasetList.get(datasetIdx)).getOrgansim()); // get it from the dataset
       comparedList.setPop_Path(pop_File);
       comparedList.setFullName(fullListName);
       // do call genemerge for compared lists for diff categories
       comparedLists.add(comparedList);
       }
    goBean.setComparedLists(comparedLists);
    
   //=================external lists===========================
   Vector extListVector=new Vector();
   List extList=null;
   String []strArr=null;
   String extlistName="";
   for(int i=0;i<L_externalList.getModel().getSize();i++)
    {
       extList=new List(); 
       extlistName=L_externalList.getModel().getElementAt(i).toString();
       extList.setName(extlistName);
       
       strArr=((String)hMapExt.get(extlistName)).split(";");
       extList.setOrganism(strArr[0]);
       extList.setClusterFolderPath(strArr[1]);
       extList.setPop_Path(strArr[2]);
       extList.setGoFolderPath(strArr[3]);
       extListVector.add(extList);
   }
   goBean.setExtrenalLists(extListVector);
   //==============================go category============
   if(buttonGroup1.isSelected(R_BP.getModel()))
       goBean.setGoCategory(GeneMergeForGO.GO_BIOLOGICAL_PROCESS);
   else if(buttonGroup1.isSelected(R_MF.getModel()))
       goBean.setGoCategory(GeneMergeForGO.GO_MOLECULAR_FUNCTION);
   else if(buttonGroup1.isSelected(R_CC.getModel()))
       goBean.setGoCategory(GeneMergeForGO.GO_CELLULAR_COMPONENT);
   
   // jsut for now in the master
   goBean.setGoCategory(GeneMergeForGO.GO_BIOLOGICAL_PROCESS);
   
   //=============================  pvalues array ===========
   Vector pvalVector=new Vector();
   if(Ch_0.isSelected()) pvalVector.add(new Double(owner.PVALUE_ARRAY[0]));
   if(Ch_1.isSelected()) pvalVector.add(new Double(owner.PVALUE_ARRAY[1]));
   if(Ch_2.isSelected()) pvalVector.add(new Double(owner.PVALUE_ARRAY[2]));
   if(Ch_3.isSelected()) pvalVector.add(new Double(owner.PVALUE_ARRAY[3]));
   if(Ch_4.isSelected()) pvalVector.add(new Double(owner.PVALUE_ARRAY[4]));
   if(Ch_5.isSelected()) pvalVector.add(new Double(owner.PVALUE_ARRAY[5]));
   if(Ch_6.isSelected()) pvalVector.add(new Double(owner.PVALUE_ARRAY[6]));
   if(Ch_7.isSelected()) pvalVector.add(new Double(owner.PVALUE_ARRAY[7]));
   
   if(T_Pvalues.getText()!=null && ! T_Pvalues.getText().equalsIgnoreCase(""))
   {
       String []stArr=T_Pvalues.getText().split(",");
       for (int i=0;i<stArr.length;i++)
       {
           pvalVector.add(new Double(stArr[i]));
       }
   }
   double []pvalArr=new double[pvalVector.size()];
   for(int i=0;i<pvalArr.length;i++)
   {
       pvalArr[i]=((Double)pvalVector.get(i)).doubleValue();
   }
   if (pvalArr.length==0) pvalArr=owner.PVALUE_ARRAY;
   goBean.setPValues(pvalArr);
   //================== filteration=====================================
   goBean.setFilterGeneNo(Ch_GeneNo.isSelected());
   goBean.setFilterStudyFrac(Ch_StudyFrac.isSelected());
   goBean.setFilterPopFrac(Ch_GeneToPop.isSelected());
   if(Ch_GeneNo.isSelected())
               goBean.setMinGeneNo(Integer.parseInt(T_GeneNo.getText().toString()));
   if(Ch_StudyFrac.isSelected())
              goBean.setMinStudyFrac(Double.parseDouble(T_studyFrac.getText().toString()));
   if(Ch_GeneToPop.isSelected())
              goBean.setMinPopFrac(Double.parseDouble(T_GeneToPop.getText().toString()));
       
  //prepare the gobean data to be ready for drawing.
    goBean.checkGOFilesForInternalLists();
    goBean.createGOFilesForExtrenalLists();
    goBean.setTotalList();
    owner.goBean=goBean;
    this.setVisible(false);
    this.dispose();

  
   //======================  bas khalas==========================
}else{
JOptionPane.showMessageDialog(null,"Please select bicluster lists to compare");  
}

}//GEN-LAST:event_jButton11ActionPerformed

private void T_GeneNoInputMethodTextChanged(java.awt.event.InputMethodEvent evt) {//GEN-FIRST:event_T_GeneNoInputMethodTextChanged
// TODO add your handling code here:
  
}//GEN-LAST:event_T_GeneNoInputMethodTextChanged

private void T_studyFracInputMethodTextChanged(java.awt.event.InputMethodEvent evt) {//GEN-FIRST:event_T_studyFracInputMethodTextChanged
// TODO add your handling code here:
   
}//GEN-LAST:event_T_studyFracInputMethodTextChanged

private void T_GeneToPopInputMethodTextChanged(java.awt.event.InputMethodEvent evt) {//GEN-FIRST:event_T_GeneToPopInputMethodTextChanged
// TODO add your handling code here:
   
}//GEN-LAST:event_T_GeneToPopInputMethodTextChanged

private void T_GeneNoFocusLost(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_T_GeneNoFocusLost
// TODO add your handling code here:
   
}//GEN-LAST:event_T_GeneNoFocusLost

private void T_GeneToPopFocusLost(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_T_GeneToPopFocusLost
// TODO add your handling code here:
}//GEN-LAST:event_T_GeneToPopFocusLost

private void T_studyFracFocusLost(java.awt.event.FocusEvent evt) {//GEN-FIRST:event_T_studyFracFocusLost
// TODO add your handling code here:
    
   
}//GEN-LAST:event_T_studyFracFocusLost

private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed
// TODO add your handling code here:
      JFileChooser jfc = new JFileChooser(BicatGui.currentDirectoryPath);
        jfc.setMultiSelectionEnabled(true);
        jfc.setDragEnabled(true);
        jfc.setDialogTitle("Select main data file:");
        try {
                Properties prop = new Properties();
                prop.load(new FileInputStream(propFile));
                if (prop.containsKey(lastFilePropertyName)) {
                        File selFile = new File(prop.getProperty(lastFilePropertyName));
                        jfc.setSelectedFile(selFile);
                }
        } catch (IOException ex) {
                // could not fetch last file from properties file
                // ignore exception
                ex.printStackTrace();
        }

        if (jfc.showOpenDialog(owner) == JFileChooser.APPROVE_OPTION) {
                file = jfc.getCurrentDirectory();
                Properties prop = new Properties();
                prop.setProperty(lastFilePropertyName, file.getAbsolutePath());
                try {
                        prop.store(new FileOutputStream(propFile),lastFilePropertyName);
                } catch (IOException ex) {
                        // ignore
                        ex.printStackTrace();
                }
                T_GO_FilePath.setText(file.getPath());
        } else
                return; 
}//GEN-LAST:event_jButton1ActionPerformed
public static boolean isDouble(String s)
{
scanner = new Scanner(s);
return scanner.hasNextDouble();
}
public static boolean isInteger(String s)
{
scanner = new Scanner(s);
return scanner.hasNextInt();
}
    /**
    * @param args the command line arguments
    */
    public static void main(String args[]) {
        java.awt.EventQueue.invokeLater(new Runnable() {
            public void run() {
                RunDialog_GOCompare dialog = new RunDialog_GOCompare(new javax.swing.JFrame(), true);
                dialog.addWindowListener(new java.awt.event.WindowAdapter() {
                    public void windowClosing(java.awt.event.WindowEvent e) {
                        System.exit(0);
                    }
                });
                dialog.setVisible(true);
            }
        });
    }

    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JButton B_Add;
    private javax.swing.JButton B_All_To_Left;
    private javax.swing.JButton B_All_To_Right;
    private javax.swing.JButton B_NewName;
    private javax.swing.JButton B_One_To_Left;
    private javax.swing.JButton B_One_To_Right;
    private javax.swing.JButton B_Remove;
    private javax.swing.JButton B_SaveAssignedName;
    private javax.swing.JCheckBox Ch_0;
    private javax.swing.JCheckBox Ch_1;
    private javax.swing.JCheckBox Ch_2;
    private javax.swing.JCheckBox Ch_3;
    private javax.swing.JCheckBox Ch_4;
    private javax.swing.JCheckBox Ch_5;
    private javax.swing.JCheckBox Ch_6;
    private javax.swing.JCheckBox Ch_7;
    private javax.swing.JCheckBox Ch_8;
    private javax.swing.JCheckBox Ch_GeneNo;
    private javax.swing.JCheckBox Ch_GeneToPop;
    private javax.swing.JCheckBox Ch_StudyFrac;
    private javax.swing.JCheckBox Ch_all;
    private javax.swing.JComboBox Combo_Organism;
    private javax.swing.JList L_Available_List;
    private javax.swing.JList L_Compared_List;
    private javax.swing.JList L_externalList;
    private javax.swing.JRadioButton R_BP;
    private javax.swing.JRadioButton R_CC;
    private javax.swing.JRadioButton R_MF;
    private javax.swing.JTextField T_AssignedName;
    private javax.swing.JTextField T_FolderPath;
    private javax.swing.JTextField T_GO_FilePath;
    private javax.swing.JTextField T_GeneNo;
    private javax.swing.JTextField T_GeneToPop;
    private javax.swing.JTextField T_Name_external;
    private javax.swing.JTextField T_Pop_Path;
    private javax.swing.JTextField T_Pvalues;
    private javax.swing.JTextField T_studyFrac;
    private javax.swing.ButtonGroup buttonGroup1;
    private javax.swing.JButton jButton1;
    private javax.swing.JButton jButton11;
    private javax.swing.JButton jButton13;
    private javax.swing.JButton jButton7;
    private javax.swing.JButton jButton8;
    private javax.swing.JLabel jLabel1;
    private javax.swing.JLabel jLabel10;
    private javax.swing.JLabel jLabel11;
    private javax.swing.JLabel jLabel12;
    private javax.swing.JLabel jLabel2;
    private javax.swing.JLabel jLabel3;
    private javax.swing.JLabel jLabel4;
    private javax.swing.JLabel jLabel5;
    private javax.swing.JLabel jLabel6;
    private javax.swing.JLabel jLabel7;
    private javax.swing.JLabel jLabel8;
    private javax.swing.JLabel jLabel9;
    private javax.swing.JPanel jPanel1;
    private javax.swing.JPanel jPanel2;
    private javax.swing.JPanel jPanel3;
    private javax.swing.JPanel jPanel4;
    private javax.swing.JPanel jPanel5;
    private javax.swing.JScrollPane jScrollPane1;
    private javax.swing.JScrollPane jScrollPane2;
    private javax.swing.JScrollPane jScrollPane3;
    // End of variables declaration//GEN-END:variables

}
