String agentName = (String)agentNames.get(e.getLastIndex()); displayPlugins(agentName);
JList agentsList = (JList)e.getSource(); String agentName = (String)agentsList.getSelectedValue(); if (agentName != null) displayPlugins(agentName);
      public void valueChanged(ListSelectionEvent e) {        if (e.getValueIsAdjusting())          return;	// Does getLastIndex always show later in the list, so	// that if you change selection to something earlier in the list,	// you wont see the new selection?        String agentName = (String)agentNames.get(e.getLastIndex());        displayPlugins(agentName);      }