"It was nursery first and then playroom and gymnasium, I should judge; for the windows are barred for little children..."See in text(The Yellow Wallpaper)
Gilman sets the story in a former nursery in order to emphasize the infantilization of the narrator by her husband, John, who chooses this room for her against her will. The barred windows evoke a sinister sense of imprisonment and isolation.