public RobotConnectedController(
      List<RobotController> robotControllers,
      List<String> tabNames,
      List<RobotData> robotDatas,
      Socket robotClientSocket,
      MainGui mainGui,
      PanelTexts panelTexts) {

    this.mainGui = mainGui;
    this.panelTexts = panelTexts;
    this.robotControllers = robotControllers;
    this.robotClientSocket = robotClientSocket;
    this.tabNames = tabNames;
    this.robotDatas = robotDatas;

    robotConnectedGui = new RobotConnectedGui();
    addLabelsToConnectedGuiComboBox();

    mainGui.setEnabledMainGui(false);
    robotConnectedGui.setAlertLabel(panelTexts.getAlertLabelText1());
    robotConnectedGui.addOKListener(new OK());
    robotConnectedGui.addCancelListener(new cancel());
  }
  private void addLabelsToConnectedGuiComboBox() {

    for (int i = 0; i < robotDatas.size(); i++) {
      robotConnectedGui.setRobotModelLabelComboBox(robotDatas.get(i).getRobotModel());
    }
  }
  public void closeRobotConnectedController() {

    mainGui.setEnabledMainGui(true);
    robotConnectedGui.closeRobotConnectedGuiFrame();
  }