Form containerForm=new Form(filename);
StringItem label1 = new StringItem("","Test\nTest2\nTest3");
StringItem label2 = new StringItem("","Test\nTest2\nTest3");
label2.setLayout(Item.LAYOUT_LEFT|Item.LAYOUT_TOP|Item.LAYOUT_SHRINK );
label2.setLayout(Item.LAYOUT_RIGHT|Item.LAYOUT_TOP|Item.LAYOUT_SHRINK );
containerForm.append(label1);
containerForm.append(label2);
display.setCurrent(containerForm);
このコードはこれを生成します:
2 つの StringItems が隣り合っており、test が test と並んでいるようにしたいのです。
また、2 つの文字列アイテムを 1 つに結合し、それらの間にタブ (\t) を追加しようとしました。ただし、タブは何もありませんでした。