The first thing we want to add to our JSplitPane is a JTree to be found on the left side of the split pane. But a JTree alone doesn't make much sense because it has no viewport of its own that scrolls when the tree expands. Therefore follow these steps:
Select your frame and check it out and you will see the tree you've created from the string resources
Root:leaf_1|leaf_2|leaf_3
.
If you want to have an XML structure as a model, change to the editor of the tree Component, select XMLFile from the Items combo box, press the resource dialog button (furthest right) and search for the MyJFrame.xml file we have created in our examples above.
Copyright © 2003 Wöhrmann Softwareentwicklung - Munich Germany