314315316317318319320321322323324
MultiAreaFrame parentFrame = frameStack.isEmpty() ? null : (MultiAreaFrame) frameStack.peek(); frame.setParent(parentFrame); if (parentFrame != null) { parentFrame.addChild(frame); } if (isContainer) { frameStack.push(frame); }