static void setSelectedIndex(final JList l, final int i) { swing { l.setSelectedIndex(i); } }