public void newwidget(int id, String type, Coord c, int parent, Object... args) throws InterruptedException { super.newwidget(id, type, c, parent, args); Widget w = widgets.get(id); synchronized (robots) { for (Robot r : robots) r.newwdg(id, w, args); } }