O'Reilly logo

Graphic Java™ 2, Volume II: Swing, Third Edition by David M. Geary

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

Swing lists, represented by the JList class, display a list of selectable objects and support three selection modes: single selection, single interval selection, and multiple interval selection.

The JList class delegates the responsibilities of maintaining and rendering a list of objects; a list's model maintains a list of objects that are rendered in list cells by a list cell renderer.

By default, list cell renderers are instances of DefaultListCellRenderer, which renders objects ...

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