May 2015
Intermediate to advanced
708 pages
20h 12m
English
CHAPTER 8
![]()
Using Swing’s JTree
The JTree component defined in the javax.swing package is commonly used to display hierarchical data such as the contents of a file system. Even if you’ve never used JTree before, you’ve almost certainly seen a component like the one that appears on the left side of the Windows Explorer application (see Figure 8-1).

Figure 8-1. Windows Explorer represents the relationships between a set of disks and directories
This chapter describes how to use JTree and illustrates how to provide some functionality that’s often ...
Read now
Unlock full access