title: Java - Why do component functions call actionPerformed?
body: <p>In my code, two comboboxes are added to actionListener( this );</p>
  
  <p>In another part of my code, I call a combobox function that sets an index to a certain value. This in turn calls actionPerfoemed again and so getSource == comboBox is true. Every time I call a set function it calls actionPerformed again, creating a stack of function calls that then unwinds down to the first.</p>
  
  <p>Is there a way to prevent this?</p>