private void jComboBox2ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jComboBox2ActionPerformed
    //CPU cost selector
                        switch(this.jComboBox2.getSelectedIndex()){
                            case 0:
                                DeleteFile("cpu");
                                break;
                            case 1:            
                                Plan.cpu_cost = "cost like '___'";
                                break;                                                
                            case 2:            
                                Plan.cpu_cost = "cost like '1___'"            
                                        + " or cost like '2___'";            
                                break;            
                            case 3:            
                                Plan.cpu_cost = "cost like '3___'"            
                                        + " or cost like '4___'";            
                                break;                
                            default:
                                break;
                        }
                if(this.jComboBox2.getSelectedIndex()!=0){
            try {
                SQLQueryExe("Select ctype,brand,type,name,cost from db where ctype = 'CPU' and "+Plan.cpu_cost+" and type !=''","cpu_data.tmp",false);
                SQLQueryExe("Select socket from db where ctype = 'CPU' and "+Plan.cpu_cost+" and type !=''","cpu_socket.tmp",false);
                SQLQueryExe("Select cost from db where ctype = 'CPU' and "+ Plan.cpu_cost+" and type !=''","cpu_cost.tmp",false);
            } catch (IOException ex) {
                Logger.getLogger(Plan.class.getName()).log(Level.SEVERE, null, ex);
            }
                }

        
    
    }//GEN-LAST:event_jComboBox2ActionPerformed