GUI Overview
The GUI contains three JButton
s, two JTextArea
s, a JComboBox
and a JTextField
. The layout manager is GridBagLayout
. Lines 21–22 create the GridBagLayout
object and set the layout manager for the JFrame
to layout
. Line 23 creates the GridBagConstraints
object used to determine the location and size of each component in the grid. Lines 26–35 create each GUI component that will be added to the content pane.
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.