Creating a UI with nested layouts
First add the label and the text field for the command line:
XYLayout
or null
.
JLabel
(Label 1) to the left end of panel 12.
text
value = URL:
horizontalAlignment
value = CENTER
opaque
value = True
font
value = SansSerif, regular, 12
background
value = Light Gray
JTextField
component at the right of Label 1 to extend across the rest of the panel.
JTextArea
, as shown below.
text
property have a default text value entered into the text
property. You can remove this by highlighting the text displayed in the text
property value and pressing Delete.
This is what your UI should look like now:
Save your work again.