Space is an empty component used for deliberate spacing within layouts.
For the complete API reference, see https://doc.jdance.org.
Two text items separated by a small horizontal space.
BasicLayout layout = new BasicLayout(BasicLayout.Direction.HORIZONTAL); layout.add(new Text("A")); layout.add(new Space().setWidth(16)); layout.add(new Text("B"));