title: [JAVA]How to call the method "itemStateChanged"
body: <p>So, I have this method;</p>
  
  <pre><code>public void itemStateChanged(ItemEvent event){
          if(event.getSource() == temasJogo){
              if(event.getStateChange() == ItemEvent.SELECTED){
                  indiceTema = indiceTemas[ temasJogo.getSelectedIndex() ];
              }
  
          }
      }
  </code></pre>
  
  <p>just for this <code>JComboBox</code></p>
  
  <pre><code>temasJogo = new JComboBox(temas);
          temasJogo.addActionListener(this);
  </code></pre>
  
  <p>I need it to modify an attribute of my class so that it selects the other theme of the game. The problem is, I can't manage to call this method anywhere. I know the answer will be something really simple, but I truly need help. </p>