JComponent parent = (JComponent)textArea.getParent(); parent.add(splitPane); parent.revalidate();
oldParent.add(splitPane); oldParent.revalidate();
	public void split(int orientation)	{		if(splitPane == null)		{			saveCaretInfo();			splitPane = new JSplitPane(orientation,textArea,				textArea = createTextArea());			initTextArea(textArea);			loadCaretInfo();			splitPane.setBorder(null);			if(bufferTabs != null)				bufferTabs.update();			else			{				JComponent parent = (JComponent)textArea.getParent();				parent.add(splitPane);				parent.revalidate();			}		}		else			splitPane.setOrientation(orientation);		SwingUtilities.invokeLater(new Runnable() {			public void run()			{				splitPane.setDividerLocation(0.5);				focusOnTextArea();			}		});	}