I tried to fix all but still gives same error. Here is code, when I try to add an instance to vector that's happened. any idea?
private static Vector<DrawingElement> vector;
public void Add(DrawingElement de) {
vector.addElement(de); // ERROR //
System.out.println("ADDED!");
}