JavaTM Look and Feel Design Guidelines: Advanced Topics > Part I: General Topics > 4: Behavior > Selecting Multiple Objects   PreviousNextContents/Index/Search


Selecting Multiple Objects

Users sometimes want to use a single command to perform the same action on multiple objects--that is, on more than one object at a time. To provide this capability in your application, you first need to provide multiple selection, the ability to select more than one object at a time.

Follow these rules when enabling users to select multiple objects:

For more information about multiple selection in lists and in tables, see "Selection Models and Editing Models for Tables" on page 72. In addition, see Chapter 12 and Appendix A of Java Look and Feel Design Guidelines, 2d ed.

Enable users to select multiple objects in a component if any of the component's commands can apply to more than one object at time.

If users can select multiple objects with the mouse, enable users to select multiple objects with the keyboard as well.

When users use the mouse to select multiple objects, select each object whose center is within the bounding box.


Java Look and Feel Design Guidelines: Advanced Topics.
Copyright 2001. Sun Microsystems, Inc. All Rights Reserved.
PreviousNextContents/Index/Search