private void runButtonActionPerformed( java.awt.event.ActionEvent evt) { // GEN-FIRST:event_runButtonActionPerformed Substance[] substances = new Substance[selectedSubstanceNames.getSize()]; for (int i = 0; i < substances.length; i++) substances[i] = (Substance) (system.get((String) (selectedSubstanceNames.get(i)))); rss.start(); } // GEN-LAST:event_runButtonActionPerformed
public void setUpList() { List substances = system.getSubstances(); int nSubs = substances.size(); // substances.length; Substance s; for (int i = 0; i < nSubs; i++) { s = (Substance) (substances.get(i)); substanceNames.addElement(s.getName()); } }