Configuring JList
The JList
(lines 74–75) has weightx
and weighty
values of 1. The fill
variable is BOTH
. The JList
is added to the content pane with a call to addComponent
.
Get Java™ How To Program (Early Objects), Tenth Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.