TestRenParticleGUI.root.setRenderState(ts);
  private void changeTexture() {    TestRenParticleGUI.noUpdate = true;    try {      JFileChooser chooser = new JFileChooser();      chooser.setMultiSelectionEnabled(false);      int result = chooser.showOpenDialog(this);      if (result == JFileChooser.CANCEL_OPTION) {        TestRenParticleGUI.noUpdate = false;        return;      }      File textFile = chooser.getSelectedFile();      TestRenParticleGUI.root.clearRenderState(RenderState.RS_TEXTURE);      TextureState ts = DisplaySystem.getDisplaySystem().getRenderer().          getTextureState();      ts.setTexture(          TextureManager.loadTexture(          textFile.getAbsolutePath(),          Texture.MM_LINEAR,          Texture.FM_LINEAR,          true));      ts.setEnabled(true);      ImageIcon icon = new ImageIcon(textFile.getAbsolutePath());      imageLabel.setIcon(icon);      validate();    } catch (Exception ex) {      ex.printStackTrace();    }    TestRenParticleGUI.noUpdate = false;  }