There are Label
, TextField
and a Container
in a Form. I set :
...
private Container c = new Container(new BoxLayout(BoxLayout.Y_AXIS));
...
impay30 = new Label("ImpayƩ 30j");
impay30.setUIID("FicheLibelle");
impay30.setPreferredW(LabellargeW);
impay30txt = new TextField();
impay30txt.setMaxSize(50);
impay30txt.addDataChangeListener(this);
VirtualKeyboard.bindVirtualKeyboard(impay30txt, vkNombre);
impay30txt.setLabelForComponent(impay30);
c.addComponent(impay30txt);
But in runtime the TextField are only displayed but the Label are not displayed ! So how to make the Label
appear ?
You have to add
impay30
intoContainer(c)
. Then only its showing on the screen.impay30
label is associate withimpay30txt
component when usesetLabelForComponent
and it will be used for start the ticker of theLabel
when theComponent
receives the focus.