{
borderPane = new BorderPane();
//Menus
menuBar = new MenuBar();
fileMenu = new Menu("Fichier");
singlePlayerGame = new MenuItem("Cr�er partie solo");
singlePlayerGame.setOnAction(new StartGameHandler());
multiPlayerGame = new MenuItem("Cr�er partie en ligne");
multiPlayerGame.setOnAction(new StartOnlineGameHandler());
joinGame = new MenuItem("Rejoindre une partie");
joinGame.setOnAction(new JoinOnlineGameHandler());
MenuItem logonMenuItem = new MenuItem("Connexion");
logonMenuItem.setOnAction(new LogonHandler());
accountCreation = new MenuItem("Creer un Compte");
accountCreation.setOnAction(new DisplayAccountCreation());
fileMenu.getItems().add(accountCreation);
fileMenu.getItems().add(logonMenuItem);
fileMenu.getItems().add(singlePlayerGame);
Menu accountMenu = new Menu("Compte");
MenuItem infoMenuItem = new MenuItem("Mes infos");
infoMenuItem.setOnAction(new DisplayUserInfoHandler());
MenuItem rightMenuItem = new MenuItem("Mes droits");
rightMenuItem.setOnAction(new DisplayPermissionHandler());
MenuItem editRightMenuItem = new MenuItem("Gerer les droits");
editRightMenuItem.setOnAction(new EditPermissionHandler());
accountMenu.getItems().addAll(infoMenuItem, rightMenuItem, editRightMenuItem);
team = new Menu("Equipe");
teamCreation = new MenuItem("Cr�er une �quipe");
teamCreation.setOnAction(new DisplayTeamHandler());
team.getItems().add(teamCreation);
stat = new Menu("Statistique");
yourStat = new MenuItem("Vos Statistiques");
yourStat.setOnAction(new DisplayStatistics());
stat.getItems().add(yourStat);
Menu roomMenu = new Menu("Salon");
roomJoin = new MenuItem("Rejoindre un salon");
roomJoin.setOnAction(new RoomHandler());
roomRemove = new MenuItem("Supprimer un salon");
roomRemove.setOnAction(new RemoveRoomHandler());
roomMenu.getItems().addAll(roomJoin, roomRemove);
menuBar.getMenus().addAll(fileMenu, accountMenu, team, roomMenu, stat);
borderPane.setTop(menuBar);
gameBorderPane = new BorderPane();
gameBorderPane.setStyle("-fx-background-image: url(\"res\\ihm\\texture.jpg\");");