title: How to change comboBox options depending on the selected item of a different comboBox
body: <p>How do I change the options for a combo box depending on the selected item of a different combo box?</p>
  
  <pre><code>public class Test extends JFrame{
      String[] test = {"blank", "blank_1"};
      if (comboBox.getSelectedItem() == "blank"){
          String[] test_1 = {"test"};
      }
      else {
      String[] test_1 = {"test_1"};
      }
      JComboBox comboBox = new JComboBox(test);
      JComboBox comboBox_1 = new JComboBox(test_1);
  }
  </code></pre>