Code example for Vector

Methods: get, set

0
        } 
 
        public void actionPerformed(ActionEvent e) {
            int sel = list.getSelectedIndex();
            if(sel!=-1 && sel<listModel.size()-1){
                File f = files.get(sel);
                files.set(sel, files.get(sel+1));
                files.set(sel+1, f);
                Object o = listModel.get(sel);
                listModel.set(sel, listModel.get(sel+1));
                listModel.set(sel+1, o);
                list.setSelectedIndex(sel+1);
                modifiedDocument(); 
            } 
        } 
    } 
 
    private class PlaybackChangeAction implements ActionListener{ 
        public void actionPerformed(ActionEvent e) {
            properties.setProperty(Constants.INSTRUMENTPROP, Integer.toString(instrumentCombo.getSelectedIndex()));
            properties.setProperty(Constants.WITHREPEATPROP, playWithRepeatCheck.isSelected() ? Constants.TRUEVALUE : Constants.FALSEVALUE);