private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jButton1ActionPerformed
        if((jTextField1.getText()!=null&&jComboBox1.getSelectedIndex()!=0&&jComboBox2.getSelectedIndex()!=0))
        {
          Thread av1 = new SearchBySize1();
        long FileSize = Integer.parseInt(jTextField1.getText());

        if (jComboBox2.getSelectedItem() == "Bytes") {
            FileSearchSize = FileSize;
        } else if (jComboBox2.getSelectedItem() == "KB") {
            FileSearchSize = (FileSize*1024);
        } else if (jComboBox2.getSelectedItem() == "MB") {
            FileSearchSize = FileSize *(1024*1024);
        } else if (jComboBox2.getSelectedItem() == "GB") {
            FileSearchSize = FileSize*(1024*1024*1024);
        } else {
            JOptionPane.showMessageDialog(null, "Select the size from the Drop down Menu");
        }
        if (CurrentThread1 == null) {
            av1.start();
        } else {
            JOptionPane.showMessageDialog(null, "Please wait   \nOne search is already running\n Please cancel the previous search");
        }  
        }
        else{
            JOptionPane.showMessageDialog(null, "You must Enter the minimum size\n and the location to search for");
        }


    }