1. A method for generating multiple windows frames, suitable for an electronic device with a touch panel, wherein a center of the touch panel is a display area, and a non-display area surrounds the display area, the method comprising: detecting a touch trajectory generated by continuously touching the touch panel; determining whether the touch trajectory is started from one side of the non-display area and passed through the display area to be extended to another side of the non-display area; and splitting the display area according to the touch trajectory to display at least two windows frames if the touch trajectory is started from one side of the non-display area and passed through the display area to be extended to another side of the non-display area.