Java tutorial
//package com.java2s; import java.awt.Color; import javax.swing.*; public class Main { public static JList getListBarChart() { JList list = new JList(); list.setVisibleRowCount(-1); list.setBackground(Color.WHITE); return list; } }