Applying BoxLayout.
Trying to make child component counting method.