1 package org.neuclear.commons.crypto.passphraseagents.swing;
2
3 /*
4 * The NeuClear Project and it's libraries are
5 * (c) 2002-2004 Antilles Software Ventures SA
6 * For more information see: http://neuclear.org
7 *
8 * This library is free software; you can redistribute it and/or
9 * modify it under the terms of the GNU Lesser General Public
10 * License as published by the Free Software Foundation; either
11 * version 2.1 of the License, or (at your option) any later version.
12 *
13 * This library is distributed in the hope that it will be useful,
14 * but WITHOUT ANY WARRANTY; without even the implied warranty of
15 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
16 * Lesser General Public License for more details.
17 *
18 * You should have received a copy of the GNU Lesser General Public
19 * License along with this library; if not, write to the Free Software
20 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21 */
22
23 import org.neuclear.commons.crypto.passphraseagents.icons.IconTools;
24
25 import javax.swing.*;
26 import java.awt.*;
27
28 /***
29 * User: pelleb
30 * Date: May 15, 2004
31 * Time: 4:45:21 PM
32 */
33 public class KeyStoreListCellRenderer extends DefaultListCellRenderer {
34 public Component getListCellRendererComponent(JList list, Object value, int index, boolean isSelected, boolean cellHasFocus) {
35 super.getListCellRendererComponent(list, value, index, isSelected, cellHasFocus);
36 setIcon(IconTools.getPersonality());
37 return this;
38 }
39 }
This page was automatically generated by Maven