public void addView(AbstractView view) {
        if ("CONNECTION".equals(view.getType())){
            this.getContentPane().add(view.getPanel());
        } else {
            this.getContentPane().add(contentPanel);
            String type = view.getType();
            if (type.equals("WEST")) {
                contentPanel.add(view.getPanel(), BorderLayout.WEST);
            } else if (type.equals("SOUTH")) {
                contentPanel.add(view.getPanel(), BorderLayout.SOUTH);
            } else if(type.equals("NORTH")) {
                if (view.getClass().getSimpleName().equalsIgnoreCase("MyProfileView")) {
                    gridBagConstraints.fill = GridBagConstraints.NONE;
                    gridBagConstraints.anchor = GridBagConstraints.LINE_END;
                    gridBagConstraints.weightx = 1;
                    jpanelNorth.add(view.getPanel(), gridBagConstraints);
                }
                if (view.getClass().getSimpleName().equalsIgnoreCase("SearchBarView")) {
                    gridBagConstraints.fill = GridBagConstraints.NONE;
                    gridBagConstraints.anchor = GridBagConstraints.LINE_START;
                    gridBagConstraints.weightx = 1;
                    jpanelNorth.add(view.getPanel(), gridBagConstraints);
                }
            } else if(type.equals("EAST")) {
                contentPanel.add(view.getPanel(), BorderLayout.EAST);
            } else if(type.equals("CENTER")) {
                contentPanel.add(view.getPanel(), BorderLayout.CENTER);
            } else {
                System.out.println("Error : type du panel (north, south, east...) non défini !");
            }
        }
        this.pack();
        this.setVisible(true);
        this.setLocationRelativeTo(null);
    }