Space

Space is an empty component used for deliberate spacing within layouts.

For the complete API reference, see https://doc.jdance.org.

Overview

Two text items separated by a small horizontal space.

CODE
BasicLayout layout = new BasicLayout(BasicLayout.Direction.HORIZONTAL);
layout.add(new Text("A"));
layout.add(new Space().setWidth(16));
layout.add(new Text("B"));
RESULT
A
B