February 2014
Beginner
1248 pages
62h 25m
English
• A multiple-selection list (p. 511) enables the user to select many items from a JList.
• JList method setFixedCellWidth (p. 513) sets a JList’s width. Method setFixedCellHeight (p. 513) sets the height of each item in a JList.
• Normally, an external event (p. 513) generated by another GUI component (such as a JButton) specifies when the multiple selections in a JList should be processed.
• JList method setListData (p. 513) sets the items displayed in a JList. JList method getSe lectedValues (p. 513) returns an array of Objects representing the selected items in a JList.
Read now
Unlock full access