public void tableJoined(RoomEvent event) {
synchronized public void tableJoined(RoomEvent event) {
    public void tableJoined(RoomEvent event) {        TableServer tableServer = event.getTableServer();        TrucoPlayer playerServer = event.getPlayer();        Table table = room.getTable(tableServer.getTableNumber());        TrucoPlayer playerClient = room.getPlayer(playerServer.getName());        table.addPlayer(playerClient);        if (playerClient.getName().equals(trucoPlayer.getName())) {            table.initResources();            table.getJFrame().setVisible(true);        }        /*         * Play sound if the player is inside.         */        if (table.isInside(playerClient.getName())) {            PlaySound.play(PlaySound.ENTER_SOUND);        }    }