public void uimsg(String name, Object... args) {
        if (name == "num") {
            num = (Integer) args[0];
        } else if (name == "chres") {
            chres(ui.sess.getres((Integer) args[0]), (Integer) args[1]);
            resettt();
        } else if (name == "color") {
            olcol = (Color) args[0];
        } else if (name == "tt") {
            if ((args.length > 0) && (((String) args[0]).length() > 0))
                settip((String) args[0]);
            else
                settip(null);
            resettt();
        } else if (name == "meter") {
            meter = (Integer) args[0];
            shorttip = null;
            longtip = null;
        }
    }