The management of the frames within a desktop is the responsibility of a DesktopManager, in which the default implementation that's provided is DefaultDesktopManager.