JList, multiple_interval_selection does not work
Hi! Im using the tutorial at URL
http://java.sun.com/docs/books/tutorial/uiswing/components/list.html#selection
The codes compile ok, but the Jlist multiple interval selection just refuses to work. I need to select more than 1 item on my list. Am I missing something here. My Jlist doesnt have a "response to event e" method, is that the prob?
thanks and best rgds
Rick
******************************************************************************
String [] weekdays= {"Mon","Tue","Wed","Thu","Fri","Sat","Sun"};
weekDaysList= new JList (weekdays);
weekDaysList.setSelectionMode(ListSelectionModel.MULTIPLE_INTERVAL_SELECTION);
weekDaysList.setLayoutOrientation(JList.VERTICAL_WRAP);
weekDaysList.setVisibleRowCount(-2);
Font displayFont = new Font("courier new", Font.BOLD, 12);
weekDaysList.setFont(displayFont);
weekDaysList.setPreferredSize(new Dimension(95, 35));
inputPanel.add(weekDaysList, a);
******************************************************************************

