particles = 100;;
particles = 100;
  private void countButton_actionPerformed(ActionEvent e) {    String response = JOptionPane.showInputDialog(this, "Please enter a new particle count for this system:", "How many particles?", JOptionPane.PLAIN_MESSAGE);    int particles = 100;    try {      particles = Integer.parseInt(response);    } catch (NumberFormatException ex) {      JOptionPane.showMessageDialog(this, "Invalid number entered.  Using 100 instead.", "Invalid", JOptionPane.WARNING_MESSAGE);      particles = 100;;    }    resetManager(particles);    updateCountLabels();  }