FileDocCategorySizeDatePackage
JListModelDemo.javaAPI DocExample2322Sun Feb 22 21:39:22 GMT 2004None

JListModelDemo

public class JListModelDemo extends JListDemo
Demonstrate Swing "JList" ListModel
author
Ian Darwin
author
Tweaked by Jonathan Fuerth of SQLPower.ca

Fields Summary
Constructors Summary
JListModelDemo(String s)

		super(s);
		ListModel lm = new StaticListModel();
		list.setModel(lm);
		list.setCellRenderer(new MyCellRenderer());
		setDefaultCloseOperation(EXIT_ON_CLOSE);
	
Methods Summary
public static voidmain(java.lang.String[] s)

		JListModelDemo l = new JListModelDemo("ListModel");
		l.pack();
		l.setVisible(true);