private void jComboBox8ActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_jComboBox8ActionPerformed
    //Storage Component Selector
            
            switch(this.jComboBox8.getSelectedIndex()){
                case 0:
                    DeleteFile("stor");
                    break;
                case 1:
                    Plan.stor_type = "type = 'SSD'";
                    break;
                case 2:
                    Plan.stor_type = "type = 'HDD'";
                    break;  
                default:
                    break;
            }
            try {
                if(this.jComboBox8.getSelectedIndex()!=0){
                SQLQueryExe("Select ctype, brand,type,name,cost from db where ctype = 'STORAGE' and "+Plan.stor_type,"stor_data.tmp",false);
                SQLQueryExe("Select cost from db where ctype = 'STORAGE' and "+ Plan.stor_type, "stor_cost.tmp",false);
                }
            } catch (IOException ex) {
                Logger.getLogger(Plan.class.getName()).log(Level.SEVERE, null, ex);
            }
        
    }//GEN-LAST:event_jComboBox8ActionPerformed