Operations required for displaying or hiding windows can be simplified according to the user or the user's use status. An information processing apparatus stores, on a per-window basis, times during which other windows are concurrently displayed (concurrent display times) as a degree-of-association table. When receiving an instruction to display a certain window (concerned window), the information processing apparatus specifies a window having the longest concurrent display time (concurrently displayed window) with reference to the degree-of-association table of the concerned window and displays the concerned window and the concurrently displayed window. When receiving an instruction to hide the concerned window, the information processing apparatus hides the concerned window and the concurrently displayed window.