public void connButton() {
        if (conn==null || elementStat.get("conn")==0) {
            conn=new TcpIp(app.getIP(), app.getPort(), this);
            
            connDelay=conn.getConDelay()/1000;
            setConnButon(langValues.get("Connecting")+" ("+ (connDelay+1) +")", -1);
            
            connTimer = new Timer("connectTimer");
            connTimer.scheduleAtFixedRate(new TimerTask() {
                
                @Override
                public void run() {
                  setConnButon(langValues.get("Connecting")+" ("+ (connDelay--) +")", -1);
                  
                  if (connDelay==0) {
                      this.cancel();
                  }
                }
            }, 0, 1000);
        }
        else if (elementStat.get("conn")==-1) {                
            conn.close();
            conn=null;
            
            setConnButon(langValues.get("Connect"), 0);
        }
        else {
            conn.close();
            conn=null;
            setConnButon(langValues.get("Connect"), 0);  
        }
        System.out.println("connButton");
    }