You can separate the components by supplying the GridLayout
class
constructor with row- and column-spacing arguments:
*-- Spacing between row elements | | *-- Spacing between column elements v v setLayout(new GridLayout(2, 3, 15, 10));
When you use such spacing, you see the following: