Configuring JButton buttons[2]
JButton buttons[2]
(lines 56–57) has weightx
and weighty
values of 1. The fill
variable is BOTH
. This JButton
is the last component on the line, so REMAINDER
is used. The JButton
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.