Code example for Vector

Methods: add, remove

0
    public void addWindow(String str) {
    	this.window.add(0, new Text(str));
    } 
     
    public void updateWindow(int index, String str) {
    	this.window.remove(index);
    	this.window.add(index, new Text(str));
    } 
     
    public void removeWindow(int index) {
    	this.window.remove(index);
    } 
     
    public void moveWindow(int oldIndex, int newIndex) {
    	this.window.add(newIndex, this.window.remove(oldIndex));
    } 
}