@FXML
    private void ConnectButtomAction(ActionEvent event) {
        this.host = Hostinput.getText();

        this.port = Portinput.getText();

        this.username = Usernameinput.getText();

        this.password = Passwordinput.getText();

        this.sid = SIDInput.getText();

        int port1 = 0;

        try {
            port1 = Integer.parseInt(port);
        } catch (NumberFormatException e) {

            this.ErrorDialog("Port","El puerto no es un entero");
            return;
        }

        DataBase db = DataBase.getInstance();
        if ("".equals(host)) {
            this.ErrorDialog("Hostname","El hostname esta vacio");
        } else if ("".equals(port)) {
            this.ErrorDialog("Port","El Port esta vacio");
        } else if ("".equals(username)) {
            this.ErrorDialog("Username","El Username esta vacio");
        } else if ("".equals(password)) {
            this.ErrorDialog("Password","El Password esta vacio");
        } else if ("".equals(sid)) {
            this.ErrorDialog("SID","El SID esta vacio");
        } else {
            try{db.setConnection(host, port1, sid, username, password);
                if(db.isConnected()) myController.setScreen(Proyecto_Bases.screen2ID);
                else{
                throw new SQLException();
                }
                    }
            catch(SQLException ex){
            this.ExceptionDialog(ex);
            }
            
          
        }

    }