I have a JPanel
that I want to use to contain 3 vertical components:
- a
JLabel
- a
JTextField
- a
JScrollPane
I want all 3 components to fill the JPanel
's width. I want the JLabel
and JTextField
to use their normal heights and the JScrollPane
to use the rest.
BoxLayout
almost works, except it seems like the JTextField
and JScrollPane
share the "extra" space when the JPanel
is made large.
What can I do?