private void createGameSelector(java.util.List<GameToSelect> gamesToSelect) {
        JPanel container = new JPanel(new FlowLayout());

        final JComboBox<GameToSelect> combo = new JComboBox<GameToSelect>();
        combo.setSize(100, 20);
        for(GameToSelect gameToSelect : gamesToSelect)
            combo.addItem(gameToSelect);
        container.add(combo);

        JButton playButton = new JButton("Play");
        playButton.addActionListener(new ActionListener() {
            @Override
            public void actionPerformed(ActionEvent e) {
                GameToSelect selected = (GameToSelect) combo.getSelectedItem();
                //Appel WS service_game
                try {
                    String xml_data = WebRequester.sendDataRetrivingRequest(urlToGetData, userId, selected.gameId);
                    (LoginWindow.this).setVisible(false);
                    new MainControler(xml_data);
                } catch (UnsupportedEncodingException e1) {
                    statutLabel.setText("Error on game retrieving");
                    LoginWindow.this.repaint();
                    e1.printStackTrace();
                }
            }
        });

        container.add(playButton);

        panel.add(container);
        this.setSize(300, 200);
        panel.repaint();
    }