private void connButtonActionPerformed(
     java.awt.event.ActionEvent evt) { // GEN-FIRST:event_connButtonActionPerformed
   if (!ipBox.getSelectedItem().toString().isEmpty()
       && !portBox.getText().isEmpty()
       && !versionBox.getText().isEmpty()) {
     ys.ip = ipBox.getSelectedItem().toString();
     ys.port = portBox.getText();
     ys.version = versionBox.getText();
     try {
       if (!ys.connected) ys.connect();
       else ys.disconnect();
     } catch (IOException ex) {
       ex.printStackTrace();
     }
     if (!ys.connected) connButton.setText("Connect!");
     else connButton.setText("Disconnect!");
   }
 } // GEN-LAST:event_connButtonActionPerformed