super(s); ListModel lm = new StaticListModel(); list.setModel(lm); list.setCellRenderer(new MyCellRenderer()); setDefaultCloseOperation(EXIT_ON_CLOSE);
JListModelDemo l = new JListModelDemo("ListModel"); l.pack(); l.setVisible(true);