LWUIT is a more modern way to compose UI's for J2ME devices. It follows the "swing" / QWidget programming style (imperatively constructing the UI tree), which is easy to learn but tedious to write and especially to read / iterate on.
It looks like this
f.setLayout(new BoxLayout(BoxLayout.Y_AXIS));
ComponentGroup buttonGroup = new ComponentGroup();