public void setMessage(String m, int id){
        map.addObject (this, 512, 500);
        if       (id == 1){
            color = warningColor;
        } else if(id == 2){
            color = startColor;
        }
        message = m;
        trans = 500;
        show = true;
        bg.setTransparency (255);
        refresh();
    }