Box layout unjustified preceding gap, how to fix?
In this example I use the Box
class to organize components in a JPanel
. My problem is the presence of an unjustified gap that shouldn’t be there. Simply the text field should come at the beginning without the preceding gap. How to fix it?