Sun - Java Look and Feel Design Guidelines,
November 20th, 2006Sun - Java Look and Feel Design Guidelines, 2nd Edition made by dotneter@teamfly separate the top-level nodes, as shown in Figure 199. The third option is to draw lines that define the hierarchical relationships of the nodes, as shown in the following figure. Figure 200 Tree Component With Hierarchy Lines If your tree component contains three or more levels, use lines to delineate the hierarchical relationships of the nodes. The client property JTree.lineStyle can be set to None to display no lines, to Horizontal to display top-level lines, and to Angled to display hierarchy lines. Graphics in Tree Components You can substitute your own graphics for the JFC-supplied container and leaf node graphics. For example, if your hierarchy represents the clients and servers in a network, you might include graphic representations of the clients and servers. In Figure 200, a custom music graphic is used for the leaf nodes. You might also use separate graphics to show when a container is expanded and when it is collapsed. Editing in Tree Components You can enable users to edit the text in a tree component. When editing is enabled, users can change text using the same editing commands that they use for text fields. These commands are described in Editable Text Fields.
Hint: If you are looking for very good and affordable webspace to host and run your tomcat hosting application check Virtualwebstudio tomcat web hosting provider