Class JXTaskPaneContainer

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, Scrollable

@JavaBean public class JXTaskPaneContainer extends JXPanel
JXTaskPaneContainer provides an elegant view to display a list of tasks ordered by groups (JXTaskPanes).

Although JXTaskPane can be added to any other container, the JXTaskPaneContainer will provide better fidelity when it comes to matching the look and feel of the host operating system than any other panel. As example, when using on a Windows platform, the JXTaskPaneContainer will be painted with a light gradient background. Also JXTaskPaneContainer takes care of using the right LayoutManager (as required by JXCollapsiblePane) so that JXTaskPane behaves correctly when collapsing and expanding its content.

JXTaskPaneContainer can be added to a JScrollPane.

Example:


 JXFrame frame = new JXFrame();
 
 // a container to put all JXTaskPane together
 JXTaskPaneContainer taskPaneContainer = new JXTaskPaneContainer();
 
 // add JXTaskPanes to the container
 JXTaskPane actionPane = createActionPane();
 JXTaskPane miscActionPane = createMiscActionPane();
 JXTaskPane detailsPane = createDetailsPane();
 taskPaneContainer.add(actionPane);
 taskPaneContainer.add(miscActionPane);
 taskPaneContainer.add(detailsPane);

 // put the action list on the left in a JScrollPane
 // as we have several taskPane and we want to make sure they
 // all get visible.   
 frame.add(new JScrollPane(taskPaneContainer), BorderLayout.EAST);
 
 // and a file browser in the middle
 frame.add(fileBrowser, BorderLayout.CENTER);
 
 frame.pack().
 frame.setVisible(true);
 
Author:
Frederic Lavigne
See Also: