O'Reilly logo

Swing for Jython: Graphical Jython UI and Scripts Development using Java Swing and WebSphere Application Server by Robert Gibson

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 9

image

Providing Choices, Making Lists

You are likely to encounter situations where it would be nice to provide your users with a list of choices. For example,  you’ve probably selected the name of the city where you live from a list. Maybe you want to build an application to keep track of the books or movies that you own. Fortunately, Swing provides the JList1 component, which allows programmers to build and display lists of this sort. In this chapter, you learn how to build and display a list of items. You will also learn how to manipulate a list in the event handler method associated with another component, such as a button.

Making a List ...

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