Copyright © 2004 Christopher M Butler This work is licensed under a Creative Commons License.
Eleritec Docking Framework Tutorial
Altering the Cursor Working with the JTabbedPane
Child Container Creation
As components are docked into a DefaultDockingPort, a child Container hierarchy may be created. The DockingPort interface mandates that a DefaultDockingPort implements a getDockedComponent() method. If there are no docked components within a DefaultDockingPort, then this method returns a null reference. If there is a single Component docked within it, this component is returned. However, in the event there are multiple components docked within a DefaultDockingPort, getDockedComponent() may return either a JTabbedPane or a JSplitPane. The JTabbedPane contains multiple docked components within the CENTER region of the DefaultDockingPort, while the JSplitPane contains docked components that split the DefaultDockingPort into two sections.

Creation of the JTabbedPane and JSplitPane are handled automatically by the DefaultDockingPort whenever dock() is invoked successfully. Their creation, however, may be delegated to any class implementing the SubComponentProvider interface. To assign delegation of these operations to a SubComponentProvider, one must pass an instance into the DefaultDockingPort's setComponentProvider() method.
Altering the Cursor Working with the JTabbedPane