Code example for Vector

Methods: getset

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()));
Contextual code suggestions in your IDE  Get Codota for Java