log.error("Draw: " + not);
System.err.println("Draw: " + not);
    public void mainLoop() {        Object       tmp;        Message      msg=null;        DrawCommand  comm;        boolean      fl=true;        while(fl) {            try {                tmp=channel.receive(0);                if(tmp == null) continue;                if(tmp instanceof View) {                    View v=(View)tmp;                    if(v instanceof MergeView)                        System.out.println("** MergeView=" + v);                    else                        System.out.println("** View=" + v);                    member_size=v.size();                    if(mainFrame != null)                        setTitle();                    continue;                }                if(tmp instanceof ExitEvent) {                    System.out.println("-- Draw.main(): received EXIT, waiting for ChannelReconnected callback");                    setTitle(" Draw Demo - shunned ");                    break;                }                if(!(tmp instanceof Message))                    continue;                msg=(Message)tmp;                comm=null;                Object obj=msg.getObject();                if(obj instanceof DrawCommand)                    comm=(DrawCommand)obj;                else if(obj instanceof Message) {                    System.out.println("*** Draw.run(): message is " + Util.printMessage((Message)obj));                    Util.dumpStack(false);                    continue;                }                else {                    if(obj != null)                        System.out.println("*** Draw.run(): obj is " + obj.getClass() +                                           ", hdrs are" + msg.printObjectHeaders());                    else                        System.out.println("*** Draw.run(): hdrs are " + msg.printObjectHeaders());                    Util.dumpStack(false);                    continue;                }                switch(comm.mode) {                case DrawCommand.DRAW:                    if(panel != null)                        panel.drawPoint(comm);                    break;                case DrawCommand.CLEAR:                    clearPanel();                    continue;                default:                    log.error("***** Draw.run(): received invalid draw command " + comm.mode);                    break;                }            }            catch(ChannelNotConnectedException not) {                log.error("Draw: " + not);                break;            }            catch(ChannelClosedException closed) {                break;            }            catch(Exception e) {                log.error(e);                continue;            }        }    }