private void connectButtonActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_connectButtonActionPerformed
        if(client==null || !client.isOpened()) {
            client = TCPClient.getInstance();
            if( client.open(serverIpAdrsFormattedTextField.getText(), Integer.parseInt(serverPortFormattedTextField.getText())) ) {
                Thread t = new Thread(client);
                t.start();
            }
        }
    }//GEN-LAST:event_connectButtonActionPerformed