JComboBox comboBox
JComboBox comboBox
is the next component added (line 48). By default, the weightx
and weighty
values are zero, and the fill
variable is set to HORIZONTAL
. The JComboBox
button will grow only in the horizontal direction. The weightx
, weighty
and fill
variables retain the values set in constraints
until they’re changed. The JComboBox
button is placed at row 2, column 1. One row and two columns are occupied.
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.