O'Reilly logo

Pro Java 8 Programming, Third Edition by Brett Spell

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

CHAPTER 8

image

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).

9781484206423_Fig08-01.jpg

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required