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: displaying a first operation windows frame of a first application program in the display area; detecting a touch trajectory generated by continuously touching the touch panel; determining whether the touch trajectory is started on the non-display area of one side of the touch panel and passed through the display area to be extended on the non-display area of another side of the touch panel; and splitting the display area according to the touch trajectory to display at least two windows frames when the touch trajectory is started on the non-display area of one side of the touch panel and passed through the display area to be extended on the non-display area of another side of the touch panel; displaying the first operation windows frame and a second operation windows frame of a second application program in the split display area; detecting a second touch trajectory; and displaying a tool list related to the first application program at an intersection between the two windows frames when the second touch trajectory overlaps the intersection.