List of usage examples for javax.swing JList removeSelectionInterval
public void removeSelectionInterval(int index0, int index1)
From source file:Main.java
public static void main(String[] argv) throws Exception { String[] items = { "A", "B", "C", "D" }; JList list = new JList(items); int start = 0; int end = 0;//from ww w . j av a2 s . c om list.removeSelectionInterval(start, end); }