Copyright (c) SEMM NL All rights reserved.
Author : Paul Hamaker. Part of JavaLessons.com
We use two javax.swing.Jpanels.
We set their layout to javax.swing.BoxLayout :
The layout mode for pl2 is set to horizontal,
pl3's to vertical.
The reference you use to call setLayout on, pl2,
has to be repeated as first argument to BoxLayout's constructor.
When adding a JLabel and a JTextField to pl2,...
we create 40 pixels space in-between.
When adding components to pl3, we set them apart 20 and 60 pixels.
Note the difference between horizontal and vertical space.
Better be the same alignment for each component.
Solving buggy behavior.