private void testDropDowns(String v) {
        // if both max values and max strings have been initiated
        if (maxValue.getSelectedItem() != null && maxValue.getSelectedItem().toString() != null) {
            // if both max values and max strings have been initiated
            if (minValue.getSelectedItem() != null && minValue.getSelectedItem().toString() != null) {
                // Set highvalue to the value from the relative drop down
                highValue = Integer.parseInt(maxValue.getSelectedItem().toString());
                // Set highvalue to the value from the relative drop down
                lowValue = Integer.parseInt(minValue.getSelectedItem().toString());
                // If the high value is lower or equal to the min
                if (highValue <= lowValue) {
                    switch (v) {
                        case "max":
                            // If max, set the max to the old value
                            maxValue.setSelectedItem(oldHighValue);
                            // break
                            break;
                        case "min":
                            // if min, set the min to the old value
                            minValue.setSelectedItem(oldLowValue);
                            // break
                            break;
                    }
                    // Create a frame to display the error message
                    Component frame = null;
                    // Show the error for the dropdown
                    JOptionPane.showMessageDialog(frame, "The \"Max Value\" must be more than the \"Min Value\"!");
                } else {
                    // Else valid change
                    switch (v) {
                        case "max":
                            // set the oldMax to the new max
                            oldHighValue = highValue;
                        case "min":
                            // set the oldMin to the new min
                            oldLowValue = lowValue;
                    }
                    // Set the data share maxmin to the relevant value
                    dataShare.setMaxMin(highValue + "," + lowValue);
                }
            }
        }
    }