public void actionPerformed(ActionEvent e) { JListMutable list = (JListMutable) e.getSource(); list.removeEditor(); }