public static void main(String[] args) {

		try {
			UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName());

		}
		catch (Exception exc) {
			System.out.println("Error loading L&F: " + exc);
		}

		final JFrame frame = new JFrame("ListPanel");
		frame.getContentPane().setLayout(new GridLayout(1, 1));

		final ListPanel<String> lbp = new ListPanel<>();
		final DefaultListModel<String> listModel = new DefaultListModel<>();
		frame.getContentPane().add(lbp);
		frame.addWindowListener(new WindowAdapter() {
			@Override
			public void windowClosing(WindowEvent e) {
				System.exit(0);
			}
		});

		listModel.addElement("Ellen");
		listModel.addElement("Bill");
		listModel.addElement("Mike");
		listModel.addElement("Dennis");
		lbp.setListModel(listModel);
		lbp.setListTitle("Developers");

		frame.pack();
		frame.setVisible(true);
	}
Simple test for ListPanel class.
@param args test args not used
Ghidra/Framework/Docking/src/main/java/docking/widgets/list/ListPanel.java