private void jComboBox1ItemStateChanged(java.awt.event.ItemEvent evt) {//GEN-FIRST:event_jComboBox1ItemStateChanged
        //getting values from jCombo box
        //if the value dosn't change use the default values from the global variables
        int selection = jComboBox1.getSelectedIndex();
        
         switch (selection){
            case 0:  minPrice = 0; maxPrice = 1000000; break;
            case 1:  minPrice = 100000; maxPrice = 150000; break;
            case 2:  minPrice = 150000; maxPrice = 200000; break;
            case 3:  minPrice = 200000; maxPrice = 250000; break;
            case 4:  minPrice = 250000; maxPrice = 350000; break;  
            case 5:  minPrice = 350000; maxPrice = 500000; break;
            case 6:  minPrice = 500000; maxPrice = 1000000; break;
         }
        
    }//GEN-LAST:event_jComboBox1ItemStateChanged